#12204C#12204C

#12204C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.084 H 267.1°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#12204C
RGBrgb(18, 32, 76)
HSLhsl(226, 62%, 18%)
HSVhsv(226, 76%, 30%)
CMYKcmyk(76.3%, 57.9%, 0%, 70.2%)
CIE-LABlab(13.73, 11.49, -29.06)
CIE-LCHlch(13.73, 31.25, 291.57°)
OKLaboklab(26.05% -0.0042 -0.0835)
OKLCHoklch(26.05% 0.084 267.1)
XYZxyz(2.0700, 1.6832, 7.0519)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12204C #4C3E12
analogous
#123D4C #12204C #21124C
triadic
#12204C #4C1220 #204C12
tetradic
#12204C #4C123D #4C3E12 #124C21
square
#12204C #4C123D #4C3E12 #124C21
split-complementary
#12204C #4C2112 #3D4C12
monochromatic
#060A19 #060B1B #12204C #1E357D #294AAF

Accessibility & contrast

On white

15.71
#12204C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#12204C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12204C
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12204C#FFFFFF#000000##FFFFFF
##12204C1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04264E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #12204c;
/* rgb */ color: rgb(18, 32, 76);
/* oklch */ color: oklch(26.0% 0.084 267.1);
Tailwind
colors: {
  custom: {
    50: '#595b7e',
    500: '#12204c',
    950: '#000000',
  },
}
SCSS
$custom: #12204c;
$custom-light: #595b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#12204c",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 76
  },
  "hsl": {
    "h": 225.517,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26048,
    "c": 0.08364,
    "h": 267.1
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#12204C
secondary
#857235
accent
#BE43E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12204C

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

Preview Lab → · Contrast checker → · Palette generator →

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