#12204D#12204D

#12204D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.085 H 267.2°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#12204D
RGBrgb(18, 32, 77)
HSLhsl(226, 62%, 19%)
HSVhsv(226, 77%, 30%)
CMYKcmyk(76.6%, 58.4%, 0%, 69.8%)
CIE-LABlab(13.81, 11.92, -29.61)
CIE-LCHlch(13.81, 31.92, 291.93°)
OKLaboklab(26.14% -0.0041 -0.0851)
OKLCHoklch(26.14% 0.085 267.2)
XYZxyz(2.1051, 1.6972, 7.2364)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12204D #4D3F12
analogous
#123D4D #12204D #21124D
triadic
#12204D #4D1220 #204D12
tetradic
#12204D #4D123D #4D3F12 #124D21
square
#12204D #4D123D #4D3F12 #124D21
split-complementary
#12204D #4D2112 #3D4D12
monochromatic
#060A19 #060B1B #12204D #1E357F #2949B0

Accessibility & contrast

On white

15.68
#12204D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#12204D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12204D
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12204D#FFFFFF#000000##FFFFFF
##12204D1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03264F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #12204d;
/* rgb */ color: rgb(18, 32, 77);
/* oklch */ color: oklch(26.1% 0.085 267.2);
Tailwind
colors: {
  custom: {
    50: '#595b7f',
    500: '#12204d',
    950: '#000000',
  },
}
SCSS
$custom: #12204d;
$custom-light: #595b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#12204d",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 77
  },
  "hsl": {
    "h": 225.763,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26136,
    "c": 0.08525,
    "h": 267.2
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#12204D
secondary
#867335
accent
#BF43E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12204D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#12204D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva