#0C224C#0C224C

#0C224C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.083 H 261.7°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#0C224C
RGBrgb(12, 34, 76)
HSLhsl(219, 73%, 17%)
HSVhsv(219, 84%, 30%)
CMYKcmyk(84.2%, 55.3%, 0%, 70.2%)
CIE-LABlab(14.08, 9.01, -28.51)
CIE-LCHlch(14.08, 29.90, 287.55°)
OKLaboklab(26.23% -0.0119 -0.082)
OKLCHoklch(26.23% 0.083 261.7)
XYZxyz(2.0277, 1.7438, 7.0658)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C224C #4C360C
analogous
#0C424C #0C224C #160C4C
triadic
#0C224C #4C0C22 #224C0C
tetradic
#0C224C #4C0C42 #4C360C #0C4C16
square
#0C224C #4C0C42 #4C360C #0C4C16
split-complementary
#0C224C #4C160C #424C0C
monochromatic
#040C1A #040C1A #0C224C #143A81 #1D51B6

Accessibility & contrast

On white

15.57
#0C224C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C224C
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C224C#FFFFFF#000000##FFFFFF
##0C224C1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09274E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#002C33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c224c;
/* rgb */ color: rgb(12, 34, 76);
/* oklch */ color: oklch(26.2% 0.083 261.7);
Tailwind
colors: {
  custom: {
    50: '#565c7e',
    500: '#0c224c',
    950: '#000000',
  },
}
SCSS
$custom: #0c224c;
$custom-light: #565c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c224c",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 76
  },
  "hsl": {
    "h": 219.375,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26234,
    "c": 0.08284,
    "h": 261.7
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#0C224C
secondary
#88682C
accent
#B138EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C224C

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

Preview Lab → · Contrast checker → · Palette generator →

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