#12217E#12217E

#12217E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.155 H 267.7°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#12217E
RGBrgb(18, 33, 126)
HSLhsl(232, 75%, 28%)
HSVhsv(232, 86%, 49%)
CMYKcmyk(85.7%, 73.8%, 0%, 50.6%)
CIE-LABlab(18.89, 31.25, -53.56)
CIE-LCHlch(18.89, 62.01, 300.26°)
OKLaboklab(31.35% -0.0062 -0.1552)
OKLCHoklch(31.35% 0.155 267.7)
XYZxyz(4.5579, 2.7221, 20.0198)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12217E #7E6F12
analogous
#12577E #12217E #39127E
triadic
#12217E #7E1221 #217E12
tetradic
#12217E #7E1257 #7E6F12 #127E39
square
#12217E #7E1257 #7E6F12 #127E39
split-complementary
#12217E #7E3912 #577E12
monochromatic
#04071B #0A1348 #12217E #1A2FB4 #2A43E1

Accessibility & contrast

On white

13.60
#12217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#12217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12217E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12217E#FFFFFF#000000##FFFFFF
##12217E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12217e;
/* rgb */ color: rgb(18, 33, 126);
/* oklch */ color: oklch(31.4% 0.155 267.7);
Tailwind
colors: {
  custom: {
    50: '#675ca4',
    500: '#12217e',
    950: '#000000',
  },
}
SCSS
$custom: #12217e;
$custom-light: #675ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#12217e",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 231.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31352,
    "c": 0.15537,
    "h": 267.7
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#12217E
secondary
#B4A338
accent
#D836F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #12217E

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

Preview Lab → · Contrast checker → · Palette generator →

#12217E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva