#0C204A#0C204A

#0C204A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.083 H 262.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#0C204A
RGBrgb(12, 32, 74)
HSLhsl(221, 72%, 17%)
HSVhsv(221, 84%, 29%)
CMYKcmyk(83.8%, 56.8%, 0%, 71%)
CIE-LABlab(13.26, 9.65, -28.45)
CIE-LCHlch(13.26, 30.05, 288.74°)
OKLaboklab(25.56% -0.0103 -0.0819)
OKLCHoklch(25.56% 0.083 262.8)
XYZxyz(1.9037, 1.6054, 6.6868)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C204A #4A360C
analogous
#0C3F4A #0C204A #170C4A
triadic
#0C204A #4A0C20 #204A0C
tetradic
#0C204A #4A0C3F #4A360C #0C4A17
square
#0C204A #4A0C3F #4A360C #0C4A17
split-complementary
#0C204A #4A170C #3F4A0C
monochromatic
#040B1A #040B1A #0C204A #15377F #1D4EB3

Accessibility & contrast

On white

15.89
#0C204A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C204A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C204A
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C204A#FFFFFF#000000##FFFFFF
##0C204A1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06254C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c204a;
/* rgb */ color: rgb(12, 32, 74);
/* oklch */ color: oklch(25.6% 0.083 262.8);
Tailwind
colors: {
  custom: {
    50: '#565a7d',
    500: '#0c204a',
    950: '#000000',
  },
}
SCSS
$custom: #0c204a;
$custom-light: #565a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c204a",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 74
  },
  "hsl": {
    "h": 220.645,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25559,
    "c": 0.08252,
    "h": 262.8
  },
  "luminance": 0.01606
}

Semantic roles & 50–950 ramp

primary
#0C204A
secondary
#86692C
accent
#B439EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C204A

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

Preview Lab → · Contrast checker → · Palette generator →

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