#0C214D#0C214D

#0C214D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.086 H 262.7°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#0C214D
RGBrgb(12, 33, 77)
HSLhsl(221, 73%, 17%)
HSVhsv(221, 84%, 30%)
CMYKcmyk(84.4%, 57.1%, 0%, 69.8%)
CIE-LABlab(13.84, 10.23, -29.59)
CIE-LCHlch(13.84, 31.31, 289.07°)
OKLaboklab(26.07% -0.0108 -0.0852)
OKLCHoklch(26.07% 0.086 262.7)
XYZxyz(2.0346, 1.7015, 7.2409)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C214D #4D380C
analogous
#0C424D #0C214D #170C4D
triadic
#0C214D #4D0C21 #214D0C
tetradic
#0C214D #4D0C42 #4D380C #0C4D17
square
#0C214D #4D0C42 #4D380C #0C4D17
split-complementary
#0C214D #4D170C #424D0C
monochromatic
#040B1A #040B1A #0C214D #143882 #1D4EB7

Accessibility & contrast

On white

15.67
#0C214D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C214D
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C214D#FFFFFF#000000##FFFFFF
##0C214D1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04264F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c214d;
/* rgb */ color: rgb(12, 33, 77);
/* oklch */ color: oklch(26.1% 0.086 262.7);
Tailwind
colors: {
  custom: {
    50: '#575b7f',
    500: '#0c214d',
    950: '#000000',
  },
}
SCSS
$custom: #0c214d;
$custom-light: #575b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c214d",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 77
  },
  "hsl": {
    "h": 220.615,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26073,
    "c": 0.08588,
    "h": 262.7
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#0C214D
secondary
#896B2C
accent
#B438F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C214D

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

Preview Lab → · Contrast checker → · Palette generator →

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