#12224D#12224D

#12224D is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.082 H 265.7°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#12224D
RGBrgb(18, 34, 77)
HSLhsl(224, 62%, 19%)
HSVhsv(224, 77%, 30%)
CMYKcmyk(76.6%, 55.8%, 0%, 69.8%)
CIE-LABlab(14.45, 10.40, -28.59)
CIE-LCHlch(14.45, 30.42, 289.99°)
OKLaboklab(26.62% -0.0062 -0.0821)
OKLCHoklch(26.62% 0.082 265.7)
XYZxyz(2.1606, 1.8083, 7.2549)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12224D #4D3D12
analogous
#123F4D #12224D #1F124D
triadic
#12224D #4D1222 #224D12
tetradic
#12224D #4D123F #4D3D12 #124D1F
square
#12224D #4D123F #4D3D12 #124D1F
split-complementary
#12224D #4D1F12 #3F4D12
monochromatic
#060B19 #060C1B #12224D #1E387F #294EB0

Accessibility & contrast

On white

15.42
#12224D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12224D
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12224D#FFFFFF#000000##FFFFFF
##12224D1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #12224d;
/* rgb */ color: rgb(18, 34, 77);
/* oklch */ color: oklch(26.6% 0.082 265.7);
Tailwind
colors: {
  custom: {
    50: '#595c7f',
    500: '#12224d',
    950: '#000000',
  },
}
SCSS
$custom: #12224d;
$custom-light: #595c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#12224d",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 77
  },
  "hsl": {
    "h": 223.729,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26618,
    "c": 0.08232,
    "h": 265.7
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#12224D
secondary
#867035
accent
#B943E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12224D

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

Preview Lab → · Contrast checker → · Palette generator →

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