#12214F#12214F

#12214F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.087 H 266.8°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#12214F
RGBrgb(18, 33, 79)
HSLhsl(225, 63%, 19%)
HSVhsv(225, 77%, 31%)
CMYKcmyk(77.2%, 58.2%, 0%, 69%)
CIE-LABlab(14.29, 12.02, -30.20)
CIE-LCHlch(14.29, 32.51, 291.70°)
OKLaboklab(26.55% -0.0049 -0.0869)
OKLCHoklch(26.55% 0.087 266.8)
XYZxyz(2.2041, 1.7806, 7.6232)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12214F #4F4012
analogous
#12404F #12214F #22124F
triadic
#12214F #4F1221 #214F12
tetradic
#12214F #4F1240 #4F4012 #124F22
square
#12214F #4F1240 #4F4012 #124F22
split-complementary
#12214F #4F2212 #404F12
monochromatic
#060A19 #070C1D #12214F #1D3681 #294BB3

Accessibility & contrast

On white

15.48
#12214F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#12214F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12214F
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12214F#FFFFFF#000000##FFFFFF
##12214F1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032751
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#002C34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12214f;
/* rgb */ color: rgb(18, 33, 79);
/* oklch */ color: oklch(26.6% 0.087 266.8);
Tailwind
colors: {
  custom: {
    50: '#595b81',
    500: '#12214f',
    950: '#000000',
  },
}
SCSS
$custom: #12214f;
$custom-light: #595b81;
$custom-dark: #000000;
JSON
{
  "hex": "#12214f",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 79
  },
  "hsl": {
    "h": 225.246,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26552,
    "c": 0.08701,
    "h": 266.8
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#12214F
secondary
#887435
accent
#BE42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12214F

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

Preview Lab → · Contrast checker → · Palette generator →

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