#12204B#12204B

#12204B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.082 H 267.0°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#12204B
RGBrgb(18, 32, 75)
HSLhsl(225, 61%, 18%)
HSVhsv(225, 76%, 29%)
CMYKcmyk(76%, 57.3%, 0%, 70.6%)
CIE-LABlab(13.65, 11.06, -28.51)
CIE-LCHlch(13.65, 30.58, 291.21°)
OKLaboklab(25.96% -0.0043 -0.0819)
OKLCHoklch(25.96% 0.082 267)
XYZxyz(2.0355, 1.6694, 6.8702)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12204B #4B3D12
analogous
#123C4B #12204B #20124B
triadic
#12204B #4B1220 #204B12
tetradic
#12204B #4B123C #4B3D12 #124B20
square
#12204B #4B123C #4B3D12 #124B20
split-complementary
#12204B #4B2012 #3C4B12
monochromatic
#060B19 #060B1A #12204B #1E357C #2A4AAE

Accessibility & contrast

On white

15.74
#12204B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#12204B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12204B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12204B#FFFFFF#000000##FFFFFF
##12204B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06264D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #12204b;
/* rgb */ color: rgb(18, 32, 75);
/* oklch */ color: oklch(26.0% 0.082 267.0);
Tailwind
colors: {
  custom: {
    50: '#585b7e',
    500: '#12204b',
    950: '#000000',
  },
}
SCSS
$custom: #12204b;
$custom-light: #585b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#12204b",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 75
  },
  "hsl": {
    "h": 225.263,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2596,
    "c": 0.082,
    "h": 267
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#12204B
secondary
#847135
accent
#BD43E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12204B

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

Preview Lab → · Contrast checker → · Palette generator →

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