#0C204B#0C204B

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

Color values

HEX#0C204B
RGBrgb(12, 32, 75)
HSLhsl(221, 72%, 17%)
HSVhsv(221, 84%, 29%)
CMYKcmyk(84%, 57.3%, 0%, 70.6%)
CIE-LABlab(13.35, 10.10, -29.01)
CIE-LCHlch(13.35, 30.72, 289.20°)
OKLaboklab(25.65% -0.0102 -0.0835)
OKLCHoklch(25.65% 0.084 263)
XYZxyz(1.9377, 1.6190, 6.8656)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C204B #4B370C
analogous
#0C404B #0C204B #170C4B
triadic
#0C204B #4B0C20 #204B0C
tetradic
#0C204B #4B0C40 #4B370C #0C4B17
square
#0C204B #4B0C40 #4B370C #0C4B17
split-complementary
#0C204B #4B170C #404B0C
monochromatic
#040B1A #040B1A #0C204B #143780 #1D4DB5

Accessibility & contrast

On white

15.86
#0C204B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C204B
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C204B#FFFFFF#000000##FFFFFF
##0C204B1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c204b;
/* rgb */ color: rgb(12, 32, 75);
/* oklch */ color: oklch(25.6% 0.084 263.0);
Tailwind
colors: {
  custom: {
    50: '#565a7e',
    500: '#0c204b',
    950: '#000000',
  },
}
SCSS
$custom: #0c204b;
$custom-light: #565a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c204b",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 75
  },
  "hsl": {
    "h": 220.952,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25648,
    "c": 0.08412,
    "h": 263
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#0C204B
secondary
#876A2C
accent
#B539EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C204B

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

Preview Lab → · Contrast checker → · Palette generator →

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