#0C224F#0C224F

#0C224F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.088 H 262.5°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#0C224F
RGBrgb(12, 34, 79)
HSLhsl(220, 74%, 18%)
HSVhsv(220, 85%, 31%)
CMYKcmyk(84.8%, 57%, 0%, 69%)
CIE-LABlab(14.32, 10.36, -30.16)
CIE-LCHlch(14.32, 31.89, 288.95°)
OKLaboklab(26.5% -0.0115 -0.0869)
OKLCHoklch(26.5% 0.088 262.5)
XYZxyz(2.1344, 1.7865, 7.6280)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C224F #4F390C
analogous
#0C434F #0C224F #180C4F
triadic
#0C224F #4F0C22 #224F0C
tetradic
#0C224F #4F0C43 #4F390C #0C4F18
square
#0C224F #4F0C43 #4F390C #0C4F18
split-complementary
#0C224F #4F180C #434F0C
monochromatic
#040B1B #040B1B #0C224F #143984 #1C50B9

Accessibility & contrast

On white

15.47
#0C224F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0C224F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C224F
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C224F#FFFFFF#000000##FFFFFF
##0C224F1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c224f;
/* rgb */ color: rgb(12, 34, 79);
/* oklch */ color: oklch(26.5% 0.088 262.5);
Tailwind
colors: {
  custom: {
    50: '#575c81',
    500: '#0c224f',
    950: '#000000',
  },
}
SCSS
$custom: #0c224f;
$custom-light: #575c81;
$custom-dark: #000000;
JSON
{
  "hex": "#0c224f",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 79
  },
  "hsl": {
    "h": 220.299,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26498,
    "c": 0.08761,
    "h": 262.5
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#0C224F
secondary
#8B6C2C
accent
#B438F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C224F

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

Preview Lab → · Contrast checker → · Palette generator →

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