#0C203E#0C203E

#0C203E is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.6% C 0.063 H 258.4°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#0C203E
RGBrgb(12, 32, 62)
HSLhsl(216, 68%, 15%)
HSVhsv(216, 81%, 24%)
CMYKcmyk(80.6%, 48.4%, 0%, 75.7%)
CIE-LABlab(12.34, 4.28, -21.57)
CIE-LCHlch(12.34, 21.99, 281.21°)
OKLaboklab(24.56% -0.0126 -0.0616)
OKLCHoklch(24.56% 0.063 258.4)
XYZxyz(1.5373, 1.4588, 4.7571)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C203E #3E2A0C
analogous
#0C393E #0C203E #110C3E
triadic
#0C203E #3E0C20 #203E0C
tetradic
#0C203E #3E0C39 #3E2A0C #0C3E11
square
#0C203E #3E0C39 #3E2A0C #0C3E11
split-complementary
#0C203E #3E110C #393E0C
monochromatic
#050D1A #050D1A #0C203E #163A71 #2055A5

Accessibility & contrast

On white

16.26
#0C203E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C203E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C203E
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C203E#FFFFFF#000000##FFFFFF
##0C203E1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12233F
Deuteranopia (green-blind)
#091E3D
Tritanopia (blue-blind)
#00272B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c203e;
/* rgb */ color: rgb(12, 32, 62);
/* oklch */ color: oklch(24.6% 0.063 258.4);
Tailwind
colors: {
  custom: {
    50: '#525b73',
    500: '#0c203e',
    950: '#000000',
  },
}
SCSS
$custom: #0c203e;
$custom-light: #525b73;
$custom-dark: #000000;
JSON
{
  "hex": "#0c203e",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 62
  },
  "hsl": {
    "h": 216,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24558,
    "c": 0.06291,
    "h": 258.4
  },
  "luminance": 0.01459
}

Semantic roles & 50–950 ramp

primary
#0C203E
secondary
#7A5B2C
accent
#A53DEA
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0C203E

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

Preview Lab → · Contrast checker → · Palette generator →

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