#0C204D#0C204D

#0C204D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.087 H 263.5°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#0C204D
RGBrgb(12, 32, 77)
HSLhsl(222, 73%, 17%)
HSVhsv(222, 84%, 30%)
CMYKcmyk(84.4%, 58.4%, 0%, 69.8%)
CIE-LABlab(13.51, 11.00, -30.11)
CIE-LCHlch(13.51, 32.06, 290.06°)
OKLaboklab(25.83% -0.0099 -0.0867)
OKLCHoklch(25.83% 0.087 263.5)
XYZxyz(2.0072, 1.6468, 7.2318)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C204D #4D390C
analogous
#0C414D #0C204D #180C4D
triadic
#0C204D #4D0C20 #204D0C
tetradic
#0C204D #4D0C41 #4D390C #0C4D18
square
#0C204D #4D0C41 #4D390C #0C4D18
split-complementary
#0C204D #4D180C #414D0C
monochromatic
#040B1A #040B1A #0C204D #143682 #1D4CB7

Accessibility & contrast

On white

15.80
#0C204D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0C204D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C204D
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C204D#FFFFFF#000000##FFFFFF
##0C204D1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02264F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c204d;
/* rgb */ color: rgb(12, 32, 77);
/* oklch */ color: oklch(25.8% 0.087 263.5);
Tailwind
colors: {
  custom: {
    50: '#575a7f',
    500: '#0c204d',
    950: '#000000',
  },
}
SCSS
$custom: #0c204d;
$custom-light: #575a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c204d",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 77
  },
  "hsl": {
    "h": 221.538,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25828,
    "c": 0.08732,
    "h": 263.5
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#0C204D
secondary
#896C2C
accent
#B738F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C204D

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

Preview Lab → · Contrast checker → · Palette generator →

#0C204D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva