#0C215F#0C215F

#0C215F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.114 H 265.2°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#0C215F
RGBrgb(12, 33, 95)
HSLhsl(225, 78%, 21%)
HSVhsv(225, 87%, 37%)
CMYKcmyk(87.4%, 65.3%, 0%, 62.7%)
CIE-LABlab(15.44, 18.15, -39.11)
CIE-LCHlch(15.44, 43.12, 294.90°)
OKLaboklab(27.79% -0.0096 -0.1132)
OKLCHoklch(27.79% 0.114 265.2)
XYZxyz(2.7603, 1.9918, 11.0632)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C215F #5F4A0C
analogous
#0C4A5F #0C215F #200C5F
triadic
#0C215F #5F0C21 #215F0C
tetradic
#0C215F #5F0C4A #5F4A0C #0C5F20
square
#0C215F #5F0C4A #5F4A0C #0C5F20
split-complementary
#0C215F #5F200C #4A5F0C
monochromatic
#03091B #050E29 #0C215F #133495 #1A47CC

Accessibility & contrast

On white

15.02
#0C215F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#0C215F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C215F
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C215F#FFFFFF#000000##FFFFFF
##0C215F1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c215f;
/* rgb */ color: rgb(12, 33, 95);
/* oklch */ color: oklch(27.8% 0.114 265.2);
Tailwind
colors: {
  custom: {
    50: '#5c5b8d',
    500: '#0c215f',
    950: '#000000',
  },
}
SCSS
$custom: #0c215f;
$custom-light: #5c5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c215f",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 95
  },
  "hsl": {
    "h": 224.819,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27787,
    "c": 0.11357,
    "h": 265.2
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#0C215F
secondary
#997E2D
accent
#C334F4
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0C215F

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

Preview Lab → · Contrast checker → · Palette generator →

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