#12216A#12216A

#12216A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.2% C 0.128 H 268.0°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#12216A
RGBrgb(18, 33, 106)
HSLhsl(230, 71%, 24%)
HSVhsv(230, 83%, 42%)
CMYKcmyk(83%, 68.9%, 0%, 58.4%)
CIE-LABlab(16.78, 23.36, -44.16)
CIE-LCHlch(16.78, 49.96, 297.87°)
OKLaboklab(29.18% -0.0045 -0.1278)
OKLCHoklch(29.18% 0.128 268)
XYZxyz(3.3939, 2.2565, 13.8896)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12216A #6A5B12
analogous
#124D6A #12216A #2F126A
triadic
#12216A #6A1221 #216A12
tetradic
#12216A #6A124D #6A5B12 #126A2F
square
#12216A #6A124D #6A5B12 #126A2F
split-complementary
#12216A #6A2F12 #4D6A12
monochromatic
#04081A #091136 #12216A #1B319E #2442D3

Accessibility & contrast

On white

14.47
#12216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#12216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12216A
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12216A#FFFFFF#000000##FFFFFF
##12216A1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12216a;
/* rgb */ color: rgb(18, 33, 106);
/* oklch */ color: oklch(29.2% 0.128 268.0);
Tailwind
colors: {
  custom: {
    50: '#615c95',
    500: '#12216a',
    950: '#000000',
  },
}
SCSS
$custom: #12216a;
$custom-light: #615c95;
$custom-dark: #000000;
JSON
{
  "hex": "#12216a",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 229.773,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29178,
    "c": 0.12791,
    "h": 268
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#12216A
secondary
#A28F36
accent
#CF3AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #12216A

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

Preview Lab → · Contrast checker → · Palette generator →

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