#0C214C#0C214C

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

Color values

HEX#0C214C
RGBrgb(12, 33, 76)
HSLhsl(220, 73%, 17%)
HSVhsv(220, 84%, 30%)
CMYKcmyk(84.2%, 56.6%, 0%, 70.2%)
CIE-LABlab(13.75, 9.78, -29.04)
CIE-LCHlch(13.75, 30.64, 288.61°)
OKLaboklab(25.99% -0.011 -0.0836)
OKLCHoklch(25.99% 0.084 262.5)
XYZxyz(1.9995, 1.6875, 7.0564)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C214C #4C370C
analogous
#0C414C #0C214C #170C4C
triadic
#0C214C #4C0C21 #214C0C
tetradic
#0C214C #4C0C41 #4C370C #0C4C17
square
#0C214C #4C0C41 #4C370C #0C4C17
split-complementary
#0C214C #4C170C #414C0C
monochromatic
#040B1A #040B1A #0C214C #143881 #1D4FB6

Accessibility & contrast

On white

15.70
#0C214C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C214C
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C214C#FFFFFF#000000##FFFFFF
##0C214C1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06264E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#002B32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c214c;
/* rgb */ color: rgb(12, 33, 76);
/* oklch */ color: oklch(26.0% 0.084 262.5);
Tailwind
colors: {
  custom: {
    50: '#565b7e',
    500: '#0c214c',
    950: '#000000',
  },
}
SCSS
$custom: #0c214c;
$custom-light: #565b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c214c",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 76
  },
  "hsl": {
    "h": 220.313,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25985,
    "c": 0.08428,
    "h": 262.5
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#0C214C
secondary
#886A2C
accent
#B338EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C214C

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

Preview Lab → · Contrast checker → · Palette generator →

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