#0C224B#0C224B

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

Color values

HEX#0C224B
RGBrgb(12, 34, 75)
HSLhsl(219, 72%, 17%)
HSVhsv(219, 84%, 29%)
CMYKcmyk(84%, 54.7%, 0%, 70.6%)
CIE-LABlab(14.00, 8.57, -27.95)
CIE-LCHlch(14.00, 29.23, 287.04°)
OKLaboklab(26.15% -0.0121 -0.0803)
OKLCHoklch(26.15% 0.081 261.5)
XYZxyz(1.9932, 1.7300, 6.8841)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C224B #4B350C
analogous
#0C424B #0C224B #160C4B
triadic
#0C224B #4B0C22 #224B0C
tetradic
#0C224B #4B0C42 #4B350C #0C4B16
square
#0C224B #4B0C42 #4B350C #0C4B16
split-complementary
#0C224B #4B160C #424B0C
monochromatic
#040C1A #040C1A #0C224B #143A80 #1D52B5

Accessibility & contrast

On white

15.60
#0C224B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C224B
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C224B#FFFFFF#000000##FFFFFF
##0C224B1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274C
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#002C32
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c224b;
/* rgb */ color: rgb(12, 34, 75);
/* oklch */ color: oklch(26.1% 0.081 261.5);
Tailwind
colors: {
  custom: {
    50: '#565c7e',
    500: '#0c224b',
    950: '#000000',
  },
}
SCSS
$custom: #0c224b;
$custom-light: #565c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c224b",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 75
  },
  "hsl": {
    "h": 219.048,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26148,
    "c": 0.08124,
    "h": 261.5
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#0C224B
secondary
#87672C
accent
#AF39EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C224B

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

Preview Lab → · Contrast checker → · Palette generator →

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