Skip to content
PantoneTools
blue
CSS Named Colors

Mediumblue

mediumblue · #0000CD

HEX

#0000CD

RGB

rgb(0, 0, 205)

CMYK

cmyk(100%, 100%, 0%, 20%)

HSL

hsl(240, 100%, 40%)

LAB

lab(25.0, 67.2, -91.5)

What is Mediumblue?

Mediumblue is the mediumblue reference in the CSS Named Colors. Its sRGB value is #0000CD (rgb 0, 0, 205). It sits in the blue family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Mediumblue as a background.

Black text on this color

Sample text · 1.88 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 11.16 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Mediumblue

An 11-step tonal scale derived from Mediumblue (#0000CD). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #EBEBFB

50

#EBEBFB

#EBEBFB

Copied #D6D6F7

100

#D6D6F7

#D6D6F7

Copied #ADADEF

200

#ADADEF

#ADADEF

Copied #8080E6

300

#8080E6

#8080E6

Copied #4040DA

400

#4040DA

#4040DA

Copied #0000CD

500

#0000CD

#0000CD

Copied #0000AE

600

#0000AE

#0000AE

Copied #000085

700

#000085

#000085

Copied #00005C

800

#00005C

#00005C

Copied #000033

900

#000033

#000033

Copied #000019

950

#000019

#000019

Lighter tints (mixed with white)

Copied #6C6CD6

15%

#6C6CD6

Copied #9595DE

30%

#9595DE

Copied #B3B3E5

45%

#B3B3E5

Copied #CBCBED

60%

#CBCBED

Copied #E1E1F4

75%

#E1E1F4

Darker shades (mixed with black)

Copied #0000BF

15%

#0000BF

Copied #0000AF

30%

#0000AF

Copied #00009D

45%

#00009D

Copied #000087

60%

#000087

Copied #00006D

75%

#00006D

Color harmonies for Mediumblue

Classic color-theory harmonies derived from rotating the hue of Mediumblue. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #0000CD

#0000CD

#0000CD

Copied #CCCC00

#CCCC00

#CCCC00

Triadic

Three colors 120° apart

Copied #0000CD

#0000CD

#0000CD

Copied #CC0000

#CC0000

#CC0000

Copied #00CC00

#00CC00

#00CC00

Analogous

Two neighbors ±30° on the wheel

Copied #0066CC

#0066CC

#0066CC

Copied #0000CD

#0000CD

#0000CD

Copied #6600CC

#6600CC

#6600CC

Split-complementary

Base + two colors flanking its complement

Copied #0000CD

#0000CD

#0000CD

Copied #CC6600

#CC6600

#CC6600

Copied #66CC00

#66CC00

#66CC00

Tetradic

Two complementary pairs

Copied #0000CD

#0000CD

#0000CD

Copied #CC00CC

#CC00CC

#CC00CC

Copied #CCCC00

#CCCC00

#CCCC00

Copied #00CC00

#00CC00

#00CC00

Square

Four colors evenly spaced 90° apart

Copied #0000CD

#0000CD

#0000CD

Copied #CC0066

#CC0066

#CC0066

Copied #CCCC00

#CCCC00

#CCCC00

Copied #00CC66

#00CC66

#00CC66

Mediumblue in every color space

Full conversion of Mediumblue across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#0000CD

RGB

rgb(0, 0, 205)

CMYK

cmyk(100%, 100%, 0%, 20%)

HSL

hsl(240, 100%, 40%)

HSV

hsv(240, 100%, 80%)

HWB

hwb(240 0% 20%)

CIE Lab

lab(25.0 67.2 -91.5)

OKLCH

oklch(38.3% 0.266 264.1)

XYZ (D65)

xyz(11.02, 4.41, 58.02)

Copy-ready code for Mediumblue

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #0000CD;
background-color: #0000CD;

CSS variable

:root {
  --color-mediumblue: #0000CD;
}

Tailwind config

// tailwind.config.js
colors: {
  'mediumblue': '#0000CD',
}

Sass

$color-mediumblue: #0000CD;

Swift UIColor

UIColor(red: 0.000, green: 0.000, blue: 0.804, alpha: 1.0)

Android XML

<color name="mediumblue">#0000CD</color>

Closest match in every color system

The nearest Mediumblue equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #1E2460

RAL 5005

#1E2460

Signal blue

Copied #1D334A

RAL 5020

#1D334A

Ocean blue

Copied #063971

RAL 5017

#063971

Traffic blue

Copied #354D73

RAL 5000

#354D73

Violet blue

Copied #0E294B

RAL 5010

#0E294B

Gentian blue

Copied #20214F

RAL 5002

#20214F

Ultramarine blue

FAQ about Mediumblue

What is the HEX code for Mediumblue?

Mediumblue (mediumblue) has the HEX code #0000CD. In RGB it is rgb(0, 0, 205), and in CMYK it is cmyk(100%, 100%, 0%, 20%).

What is the OKLCH value of Mediumblue?

Mediumblue converts to oklch(0.383 0.266 264.1). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Mediumblue accessible for body text?

Used as a background, Mediumblue has a contrast ratio of 1.88:1 with black text and 11.16:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Mediumblue?

The closest Pantone reference to Mediumblue by ΔE2000 perceptual distance is Pantone Blue 072 C (#10069F). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Mediumblue?

The closest RAL Classic reference to Mediumblue by ΔE2000 distance is RAL 5005 (Signal blue, #1E2460). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Mediumblue?

The complementary color (180° opposite on the HSL color wheel) of Mediumblue is #CCCC00. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
blue

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Mediumblue — #0000CD | PantoneTools