#0C204E#0C204E

#0C204E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.089 H 263.7°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#0C204E
RGBrgb(12, 32, 78)
HSLhsl(222, 73%, 18%)
HSVhsv(222, 85%, 31%)
CMYKcmyk(84.6%, 59%, 0%, 69.4%)
CIE-LABlab(13.60, 11.44, -30.66)
CIE-LCHlch(13.60, 32.73, 290.47°)
OKLaboklab(25.92% -0.0098 -0.0884)
OKLCHoklch(25.92% 0.089 263.7)
XYZxyz(2.0428, 1.6610, 7.4192)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C204E #4E3A0C
analogous
#0C414E #0C204E #190C4E
triadic
#0C204E #4E0C20 #204E0C
tetradic
#0C204E #4E0C41 #4E3A0C #0C4E19
square
#0C204E #4E0C41 #4E3A0C #0C4E19
split-complementary
#0C204E #4E190C #414E0C
monochromatic
#040B1B #040B1B #0C204E #143683 #1C4CB8

Accessibility & contrast

On white

15.76
#0C204E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C204E
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C204E#FFFFFF#000000##FFFFFF
##0C204E1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012650
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c204e;
/* rgb */ color: rgb(12, 32, 78);
/* oklch */ color: oklch(25.9% 0.089 263.7);
Tailwind
colors: {
  custom: {
    50: '#575a80',
    500: '#0c204e',
    950: '#000000',
  },
}
SCSS
$custom: #0c204e;
$custom-light: #575a80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c204e",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 78
  },
  "hsl": {
    "h": 221.818,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25919,
    "c": 0.08891,
    "h": 263.7
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#0C204E
secondary
#8A6D2C
accent
#B838F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C204E

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

Preview Lab → · Contrast checker → · Palette generator →

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