#0C204F#0C204F

#0C204F is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.090 H 263.8°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#0C204F
RGBrgb(12, 32, 79)
HSLhsl(222, 74%, 18%)
HSVhsv(222, 85%, 31%)
CMYKcmyk(84.8%, 59.5%, 0%, 69%)
CIE-LABlab(13.68, 11.89, -31.20)
CIE-LCHlch(13.68, 33.39, 290.85°)
OKLaboklab(26.01% -0.0097 -0.09)
OKLCHoklch(26.01% 0.09 263.8)
XYZxyz(2.0789, 1.6755, 7.6094)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C204F #4F3B0C
analogous
#0C414F #0C204F #1A0C4F
triadic
#0C204F #4F0C20 #204F0C
tetradic
#0C204F #4F0C41 #4F3B0C #0C4F1A
square
#0C204F #4F0C41 #4F3B0C #0C4F1A
split-complementary
#0C204F #4F1A0C #414F0C
monochromatic
#040B1B #040B1B #0C204F #143684 #1C4BB9

Accessibility & contrast

On white

15.73
#0C204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0C204F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C204F
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C204F#FFFFFF#000000##FFFFFF
##0C204F1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#002C34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c204f;
/* rgb */ color: rgb(12, 32, 79);
/* oklch */ color: oklch(26.0% 0.090 263.8);
Tailwind
colors: {
  custom: {
    50: '#575a81',
    500: '#0c204f',
    950: '#000000',
  },
}
SCSS
$custom: #0c204f;
$custom-light: #575a81;
$custom-dark: #000000;
JSON
{
  "hex": "#0c204f",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 222.09,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26011,
    "c": 0.09048,
    "h": 263.8
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#0C204F
secondary
#8B6E2C
accent
#B938F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C204F

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

Preview Lab → · Contrast checker → · Palette generator →

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