#12204F#12204F

#12204F is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.088 H 267.4°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#12204F
RGBrgb(18, 32, 79)
HSLhsl(226, 63%, 19%)
HSVhsv(226, 77%, 31%)
CMYKcmyk(77.2%, 59.5%, 0%, 69%)
CIE-LABlab(13.98, 12.78, -30.71)
CIE-LCHlch(13.98, 33.26, 292.59°)
OKLaboklab(26.32% -0.004 -0.0884)
OKLCHoklch(26.32% 0.088 267.4)
XYZxyz(2.1768, 1.7259, 7.6140)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12204F #4F4112
analogous
#123F4F #12204F #23124F
triadic
#12204F #4F1220 #204F12
tetradic
#12204F #4F123F #4F4112 #124F23
square
#12204F #4F123F #4F4112 #124F23
split-complementary
#12204F #4F2312 #3F4F12
monochromatic
#060A19 #070C1D #12204F #1D3481 #2948B3

Accessibility & contrast

On white

15.61
#12204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#12204F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12204F
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12204F#FFFFFF#000000##FFFFFF
##12204F1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12204f;
/* rgb */ color: rgb(18, 32, 79);
/* oklch */ color: oklch(26.3% 0.088 267.4);
Tailwind
colors: {
  custom: {
    50: '#595b81',
    500: '#12204f',
    950: '#000000',
  },
}
SCSS
$custom: #12204f;
$custom-light: #595b81;
$custom-dark: #000000;
JSON
{
  "hex": "#12204f",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 226.23,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26315,
    "c": 0.08847,
    "h": 267.4
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#12204F
secondary
#887535
accent
#C042E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12204F

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

Preview Lab → · Contrast checker → · Palette generator →

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