#0C214B#0C214B

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

Color values

HEX#0C214B
RGBrgb(12, 33, 75)
HSLhsl(220, 72%, 17%)
HSVhsv(220, 84%, 29%)
CMYKcmyk(84%, 56%, 0%, 70.6%)
CIE-LABlab(13.67, 9.33, -28.48)
CIE-LCHlch(13.67, 29.97, 288.14°)
OKLaboklab(25.9% -0.0111 -0.0819)
OKLCHoklch(25.9% 0.083 262.3)
XYZxyz(1.9650, 1.6737, 6.8747)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C214B #4B360C
analogous
#0C414B #0C214B #170C4B
triadic
#0C214B #4B0C21 #214B0C
tetradic
#0C214B #4B0C41 #4B360C #0C4B17
square
#0C214B #4B0C41 #4B360C #0C4B17
split-complementary
#0C214B #4B170C #414B0C
monochromatic
#040C1A #040C1A #0C214B #143880 #1D4FB5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C214B#FFFFFF#000000##FFFFFF
##0C214B1.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07264D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#002B32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c214b;
/* rgb */ color: rgb(12, 33, 75);
/* oklch */ color: oklch(25.9% 0.083 262.3);
Tailwind
colors: {
  custom: {
    50: '#565b7e',
    500: '#0c214b',
    950: '#000000',
  },
}
SCSS
$custom: #0c214b;
$custom-light: #565b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c214b",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 75
  },
  "hsl": {
    "h": 220,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25897,
    "c": 0.08268,
    "h": 262.3
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#0C214B
secondary
#87692C
accent
#B239EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C214B

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

Preview Lab → · Contrast checker → · Palette generator →

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