#12207F#12207F

#12207F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.158 H 267.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#12207F
RGBrgb(18, 32, 127)
HSLhsl(232, 75%, 28%)
HSVhsv(232, 86%, 50%)
CMYKcmyk(85.8%, 74.8%, 0%, 50.2%)
CIE-LABlab(18.77, 32.27, -54.40)
CIE-LCHlch(18.77, 63.25, 300.68°)
OKLaboklab(31.3% -0.0059 -0.1577)
OKLCHoklch(31.3% 0.158 267.8)
XYZxyz(4.5954, 2.6934, 20.3522)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12207F #7F7112
analogous
#12567F #12207F #3B127F
triadic
#12207F #7F1220 #207F12
tetradic
#12207F #7F1256 #7F7112 #127F3B
square
#12207F #7F1256 #7F7112 #127F3B
split-complementary
#12207F #7F3B12 #567F12
monochromatic
#04071B #0A1249 #12207F #1A2EB5 #2B42E1

Accessibility & contrast

On white

13.65
#12207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#12207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12207F
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12207F#FFFFFF#000000##FFFFFF
##12207F1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #12207f;
/* rgb */ color: rgb(18, 32, 127);
/* oklch */ color: oklch(31.3% 0.158 267.8);
Tailwind
colors: {
  custom: {
    50: '#675ca5',
    500: '#12207f',
    950: '#000000',
  },
}
SCSS
$custom: #12207f;
$custom-light: #675ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#12207f",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 232.294,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31297,
    "c": 0.15779,
    "h": 267.8
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#12207F
secondary
#B5A538
accent
#DA36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #12207F

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

Preview Lab → · Contrast checker → · Palette generator →

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