#12213F#12213F

#12213F is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.2% C 0.061 H 262.8°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#12213F
RGBrgb(18, 33, 63)
HSLhsl(220, 56%, 16%)
HSVhsv(220, 71%, 25%)
CMYKcmyk(71.4%, 47.6%, 0%, 75.3%)
CIE-LABlab(13.08, 5.18, -21.09)
CIE-LCHlch(13.08, 21.71, 283.79°)
OKLaboklab(25.24% -0.0076 -0.0601)
OKLCHoklch(25.24% 0.061 262.8)
XYZxyz(1.6902, 1.5750, 4.9166)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12213F #3F3012
analogous
#12373F #12213F #19123F
triadic
#12213F #3F1221 #213F12
tetradic
#12213F #3F1237 #3F3012 #123F19
square
#12213F #3F1237 #3F3012 #123F19
split-complementary
#12213F #3F1912 #373F12
monochromatic
#070C18 #070C18 #12213F #203A6F #2D539E

Accessibility & contrast

On white

15.97
#12213F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#12213F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12213F
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12213F#FFFFFF#000000##FFFFFF
##12213F1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132440
Deuteranopia (green-blind)
#0D203E
Tritanopia (blue-blind)
#00282C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #12213f;
/* rgb */ color: rgb(18, 33, 63);
/* oklch */ color: oklch(25.2% 0.061 262.8);
Tailwind
colors: {
  custom: {
    50: '#555b74',
    500: '#12213f',
    950: '#000000',
  },
}
SCSS
$custom: #12213f;
$custom-light: #555b74;
$custom-dark: #000000;
JSON
{
  "hex": "#12213f",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 63
  },
  "hsl": {
    "h": 220,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25235,
    "c": 0.06054,
    "h": 262.8
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#12213F
secondary
#786235
accent
#AD49DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #12213F

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

Preview Lab → · Contrast checker → · Palette generator →

#12213F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva