#12224B#12224B

#12224B is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.079 H 265.3°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#12224B
RGBrgb(18, 34, 75)
HSLhsl(223, 61%, 18%)
HSVhsv(223, 76%, 29%)
CMYKcmyk(76%, 54.7%, 0%, 70.6%)
CIE-LABlab(14.29, 9.54, -27.47)
CIE-LCHlch(14.29, 29.08, 289.15°)
OKLaboklab(26.45% -0.0064 -0.0788)
OKLCHoklch(26.45% 0.079 265.3)
XYZxyz(2.0910, 1.7804, 6.8887)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12224B #4B3B12
analogous
#123E4B #12224B #1E124B
triadic
#12224B #4B1222 #224B12
tetradic
#12224B #4B123E #4B3B12 #124B1E
square
#12224B #4B123E #4B3B12 #124B1E
split-complementary
#12224B #4B1E12 #3E4B12
monochromatic
#060B19 #060C1A #12224B #1E387C #2A4FAE

Accessibility & contrast

On white

15.48
#12224B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#12224B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12224B
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12224B#FFFFFF#000000##FFFFFF
##12224B1.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)
#0B274C
Deuteranopia (green-blind)
#00224A
Tritanopia (blue-blind)
#002C32
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12224b;
/* rgb */ color: rgb(18, 34, 75);
/* oklch */ color: oklch(26.4% 0.079 265.3);
Tailwind
colors: {
  custom: {
    50: '#585c7e',
    500: '#12224b',
    950: '#000000',
  },
}
SCSS
$custom: #12224b;
$custom-light: #585c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#12224b",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 75
  },
  "hsl": {
    "h": 223.158,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26449,
    "c": 0.07906,
    "h": 265.3
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#12224B
secondary
#846E35
accent
#B743E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12224B

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

Preview Lab → · Contrast checker → · Palette generator →

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