#12224C#12224C

#12224C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.081 H 265.5°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#12224C
RGBrgb(18, 34, 76)
HSLhsl(223, 62%, 18%)
HSVhsv(223, 76%, 30%)
CMYKcmyk(76.3%, 55.3%, 0%, 70.2%)
CIE-LABlab(14.37, 9.97, -28.03)
CIE-LCHlch(14.37, 29.75, 289.58°)
OKLaboklab(26.53% -0.0063 -0.0804)
OKLCHoklch(26.53% 0.081 265.5)
XYZxyz(2.1255, 1.7942, 7.0704)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12224C #4C3C12
analogous
#123F4C #12224C #1F124C
triadic
#12224C #4C1222 #224C12
tetradic
#12224C #4C123F #4C3C12 #124C1F
square
#12224C #4C123F #4C3C12 #124C1F
split-complementary
#12224C #4C1F12 #3F4C12
monochromatic
#060B19 #060C1B #12224C #1E387D #294EAF

Accessibility & contrast

On white

15.45
#12224C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12224C
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12224C#FFFFFF#000000##FFFFFF
##12224C1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12224c;
/* rgb */ color: rgb(18, 34, 76);
/* oklch */ color: oklch(26.5% 0.081 265.5);
Tailwind
colors: {
  custom: {
    50: '#585c7e',
    500: '#12224c',
    950: '#000000',
  },
}
SCSS
$custom: #12224c;
$custom-light: #585c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#12224c",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 76
  },
  "hsl": {
    "h": 223.448,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26533,
    "c": 0.0807,
    "h": 265.5
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#12224C
secondary
#856F35
accent
#B843E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12224C

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

Preview Lab → · Contrast checker → · Palette generator →

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