#12205C#12205C

#12205C is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.109 H 268.2°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#12205C
RGBrgb(18, 32, 92)
HSLhsl(229, 67%, 22%)
HSVhsv(229, 80%, 36%)
CMYKcmyk(80.4%, 65.2%, 0%, 63.9%)
CIE-LABlab(15.14, 18.30, -37.60)
CIE-LCHlch(15.14, 41.82, 295.94°)
OKLaboklab(27.55% -0.0035 -0.1086)
OKLCHoklch(27.55% 0.109 268.2)
XYZxyz(2.6971, 1.9340, 10.3543)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12205C #5C4E12
analogous
#12455C #12205C #29125C
triadic
#12205C #5C1220 #205C12
tetradic
#12205C #5C1245 #5C4E12 #125C29
square
#12205C #5C1245 #5C4E12 #125C29
split-complementary
#12205C #5C2912 #455C12
monochromatic
#05091A #080E29 #12205C #1C328F #2644C2

Accessibility & contrast

On white

15.14
#12205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#12205C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12205C
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12205C#FFFFFF#000000##FFFFFF
##12205C1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12205c;
/* rgb */ color: rgb(18, 32, 92);
/* oklch */ color: oklch(27.5% 0.109 268.2);
Tailwind
colors: {
  custom: {
    50: '#5d5b8b',
    500: '#12205c',
    950: '#000000',
  },
}
SCSS
$custom: #12205c;
$custom-light: #5d5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12205c",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 228.649,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27546,
    "c": 0.10869,
    "h": 268.2
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#12205C
secondary
#948235
accent
#CA3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12205C

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

Preview Lab → · Contrast checker → · Palette generator →

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