#12214E#12214E

#12214E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.085 H 266.6°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#12214E
RGBrgb(18, 33, 78)
HSLhsl(225, 63%, 19%)
HSVhsv(225, 77%, 31%)
CMYKcmyk(76.9%, 57.7%, 0%, 69.4%)
CIE-LABlab(14.21, 11.59, -29.65)
CIE-LCHlch(14.21, 31.84, 291.35°)
OKLaboklab(26.46% -0.005 -0.0853)
OKLCHoklch(26.46% 0.085 266.6)
XYZxyz(2.1680, 1.7662, 7.4329)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12214E #4E3F12
analogous
#123F4E #12214E #21124E
triadic
#12214E #4E1221 #214E12
tetradic
#12214E #4E123F #4E3F12 #124E21
square
#12214E #4E123F #4E3F12 #124E21
split-complementary
#12214E #4E2112 #3F4E12
monochromatic
#060B19 #070C1C #12214E #1D3680 #294BB1

Accessibility & contrast

On white

15.52
#12214E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#12214E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12214E
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12214E#FFFFFF#000000##FFFFFF
##12214E1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12214e;
/* rgb */ color: rgb(18, 33, 78);
/* oklch */ color: oklch(26.5% 0.085 266.6);
Tailwind
colors: {
  custom: {
    50: '#595b80',
    500: '#12214e',
    950: '#000000',
  },
}
SCSS
$custom: #12214e;
$custom-light: #595b80;
$custom-dark: #000000;
JSON
{
  "hex": "#12214e",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 78
  },
  "hsl": {
    "h": 225,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26463,
    "c": 0.0854,
    "h": 266.6
  },
  "luminance": 0.01766
}

Semantic roles & 50–950 ramp

primary
#12214E
secondary
#877235
accent
#BD42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12214E

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

Preview Lab → · Contrast checker → · Palette generator →

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