#0C224D#0C224D

#0C224D is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.3% C 0.084 H 262.0°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#0C224D
RGBrgb(12, 34, 77)
HSLhsl(220, 73%, 17%)
HSVhsv(220, 84%, 30%)
CMYKcmyk(84.4%, 55.8%, 0%, 69.8%)
CIE-LABlab(14.16, 9.46, -29.06)
CIE-LCHlch(14.16, 30.56, 288.03°)
OKLaboklab(26.32% -0.0117 -0.0836)
OKLCHoklch(26.32% 0.084 262)
XYZxyz(2.0627, 1.7578, 7.2503)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C224D #4D370C
analogous
#0C434D #0C224D #160C4D
triadic
#0C224D #4D0C22 #224D0C
tetradic
#0C224D #4D0C43 #4D370C #0C4D16
square
#0C224D #4D0C43 #4D370C #0C4D16
split-complementary
#0C224D #4D160C #434D0C
monochromatic
#040C1A #040C1A #0C224D #143982 #1D51B7

Accessibility & contrast

On white

15.54
#0C224D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0C224D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C224D
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C224D#FFFFFF#000000##FFFFFF
##0C224D1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c224d;
/* rgb */ color: rgb(12, 34, 77);
/* oklch */ color: oklch(26.3% 0.084 262.0);
Tailwind
colors: {
  custom: {
    50: '#565c7f',
    500: '#0c224d',
    950: '#000000',
  },
}
SCSS
$custom: #0c224d;
$custom-light: #565c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c224d",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 77
  },
  "hsl": {
    "h": 219.692,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26321,
    "c": 0.08443,
    "h": 262
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#0C224D
secondary
#89692C
accent
#B238F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C224D

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

Preview Lab → · Contrast checker → · Palette generator →

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