#12207E#12207E

#12207E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.156 H 267.9°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#12207E
RGBrgb(18, 32, 126)
HSLhsl(232, 75%, 28%)
HSVhsv(232, 86%, 49%)
CMYKcmyk(85.7%, 74.6%, 0%, 50.6%)
CIE-LABlab(18.66, 31.90, -53.95)
CIE-LCHlch(18.66, 62.68, 300.59°)
OKLaboklab(31.18% -0.0058 -0.1564)
OKLCHoklch(31.18% 0.156 267.9)
XYZxyz(4.5306, 2.6674, 20.0107)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12207E #7E7012
analogous
#12567E #12207E #3A127E
triadic
#12207E #7E1220 #207E12
tetradic
#12207E #7E1256 #7E7012 #127E3A
square
#12207E #7E1256 #7E7012 #127E3A
split-complementary
#12207E #7E3A12 #567E12
monochromatic
#04071B #0A1248 #12207E #1A2EB4 #2A42E1

Accessibility & contrast

On white

13.69
#12207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#12207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12207E
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12207E#FFFFFF#000000##FFFFFF
##12207E1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #12207e;
/* rgb */ color: rgb(18, 32, 126);
/* oklch */ color: oklch(31.2% 0.156 267.9);
Tailwind
colors: {
  custom: {
    50: '#675ca4',
    500: '#12207e',
    950: '#000000',
  },
}
SCSS
$custom: #12207e;
$custom-light: #675ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#12207e",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 232.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31183,
    "c": 0.15648,
    "h": 267.9
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#12207E
secondary
#B4A438
accent
#D936F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #12207E

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

Preview Lab → · Contrast checker → · Palette generator →

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