#12205F#12205F

#12205F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.113 H 268.2°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#12205F
RGBrgb(18, 32, 95)
HSLhsl(229, 68%, 22%)
HSVhsv(229, 81%, 37%)
CMYKcmyk(81.1%, 66.3%, 0%, 62.7%)
CIE-LABlab(15.42, 19.55, -39.14)
CIE-LCHlch(15.42, 43.75, 296.54°)
OKLaboklab(27.85% -0.0035 -0.1131)
OKLCHoklch(27.85% 0.113 268.2)
XYZxyz(2.8308, 1.9875, 11.0587)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12205F #5F5112
analogous
#12475F #12205F #2B125F
triadic
#12205F #5F1220 #205F12
tetradic
#12205F #5F1247 #5F5112 #125F2B
square
#12205F #5F1247 #5F5112 #125F2B
split-complementary
#12205F #5F2B12 #475F12
monochromatic
#05091A #080F2C #12205F #1C3192 #2543C6

Accessibility & contrast

On white

15.03
#12205F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#12205F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12205F
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12205F#FFFFFF#000000##FFFFFF
##12205F1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12205f;
/* rgb */ color: rgb(18, 32, 95);
/* oklch */ color: oklch(27.8% 0.113 268.2);
Tailwind
colors: {
  custom: {
    50: '#5e5b8d',
    500: '#12205f',
    950: '#000000',
  },
}
SCSS
$custom: #12205f;
$custom-light: #5e5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#12205f",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 95
  },
  "hsl": {
    "h": 229.091,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27845,
    "c": 0.11318,
    "h": 268.2
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#12205F
secondary
#978536
accent
#CB3DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12205F

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

Preview Lab → · Contrast checker → · Palette generator →

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