#12205B#12205B

#12205B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.107 H 268.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#12205B
RGBrgb(18, 32, 91)
HSLhsl(228, 67%, 21%)
HSVhsv(228, 80%, 36%)
CMYKcmyk(80.2%, 64.8%, 0%, 64.3%)
CIE-LABlab(15.04, 17.87, -37.09)
CIE-LCHlch(15.04, 41.17, 295.73°)
OKLaboklab(27.45% -0.0035 -0.1071)
OKLCHoklch(27.45% 0.107 268.1)
XYZxyz(2.6536, 1.9167, 10.1256)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12205B #5B4D12
analogous
#12455B #12205B #29125B
triadic
#12205B #5B1220 #205B12
tetradic
#12205B #5B1245 #5B4D12 #125B29
square
#12205B #5B1245 #5B4D12 #125B29
split-complementary
#12205B #5B2912 #455B12
monochromatic
#05091A #080E28 #12205B #1C328E #2644C1

Accessibility & contrast

On white

15.18
#12205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#12205B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12205B
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12205B#FFFFFF#000000##FFFFFF
##12205B1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12205b;
/* rgb */ color: rgb(18, 32, 91);
/* oklch */ color: oklch(27.4% 0.107 268.1);
Tailwind
colors: {
  custom: {
    50: '#5d5b8a',
    500: '#12205b',
    950: '#000000',
  },
}
SCSS
$custom: #12205b;
$custom-light: #5d5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12205b",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 228.493,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27447,
    "c": 0.10718,
    "h": 268.1
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#12205B
secondary
#938135
accent
#C93EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12205B

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

Preview Lab → · Contrast checker → · Palette generator →

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