#0C224E#0C224E

#0C224E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.086 H 262.2°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#0C224E
RGBrgb(12, 34, 78)
HSLhsl(220, 73%, 18%)
HSVhsv(220, 85%, 31%)
CMYKcmyk(84.6%, 56.4%, 0%, 69.4%)
CIE-LABlab(14.24, 9.91, -29.61)
CIE-LCHlch(14.24, 31.23, 288.50°)
OKLaboklab(26.41% -0.0116 -0.0852)
OKLCHoklch(26.41% 0.086 262.2)
XYZxyz(2.0983, 1.7720, 7.4377)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C224E #4E380C
analogous
#0C434E #0C224E #170C4E
triadic
#0C224E #4E0C22 #224E0C
tetradic
#0C224E #4E0C43 #4E380C #0C4E17
square
#0C224E #4E0C43 #4E380C #0C4E17
split-complementary
#0C224E #4E170C #434E0C
monochromatic
#040C1B #040C1B #0C224E #143983 #1C50B8

Accessibility & contrast

On white

15.51
#0C224E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C224E
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C224E#FFFFFF#000000##FFFFFF
##0C224E1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#002D34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c224e;
/* rgb */ color: rgb(12, 34, 78);
/* oklch */ color: oklch(26.4% 0.086 262.2);
Tailwind
colors: {
  custom: {
    50: '#575c80',
    500: '#0c224e',
    950: '#000000',
  },
}
SCSS
$custom: #0c224e;
$custom-light: #575c80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c224e",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 78
  },
  "hsl": {
    "h": 220,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26409,
    "c": 0.08603,
    "h": 262.2
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#0C224E
secondary
#8A6A2C
accent
#B338F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C224E

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

Preview Lab → · Contrast checker → · Palette generator →

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