#12224A#12224A

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

Color values

HEX#12224A
RGBrgb(18, 34, 74)
HSLhsl(223, 61%, 18%)
HSVhsv(223, 76%, 29%)
CMYKcmyk(75.7%, 54.1%, 0%, 71%)
CIE-LABlab(14.21, 9.11, -26.91)
CIE-LCHlch(14.21, 28.41, 288.71°)
OKLaboklab(26.37% -0.0066 -0.0771)
OKLCHoklch(26.37% 0.077 265.1)
XYZxyz(2.0571, 1.7669, 6.7099)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12224A #4A3A12
analogous
#123E4A #12224A #1E124A
triadic
#12224A #4A1222 #224A12
tetradic
#12224A #4A123E #4A3A12 #124A1E
square
#12224A #4A123E #4A3A12 #124A1E
split-complementary
#12224A #4A1E12 #3E4A12
monochromatic
#060B19 #060B19 #12224A #1E397B #2A4FAC

Accessibility & contrast

On white

15.52
#12224A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#12224A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12224A
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12224A#FFFFFF#000000##FFFFFF
##12224A1.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)
#0C274B
Deuteranopia (green-blind)
#012249
Tritanopia (blue-blind)
#002B32
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12224a;
/* rgb */ color: rgb(18, 34, 74);
/* oklch */ color: oklch(26.4% 0.077 265.1);
Tailwind
colors: {
  custom: {
    50: '#585c7d',
    500: '#12224a',
    950: '#000000',
  },
}
SCSS
$custom: #12224a;
$custom-light: #585c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#12224a",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 74
  },
  "hsl": {
    "h": 222.857,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26365,
    "c": 0.07743,
    "h": 265.1
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#12224A
secondary
#836D35
accent
#B644E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #12224A

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

Preview Lab → · Contrast checker → · Palette generator →

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