#0C0D51#0C0D51

#0C0D51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.118 H 271.1°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#0C0D51
RGBrgb(12, 13, 81)
HSLhsl(239, 74%, 18%)
HSVhsv(239, 85%, 32%)
CMYKcmyk(85.2%, 84%, 0%, 68.2%)
CIE-LABlab(8.65, 26.52, -40.82)
CIE-LCHlch(8.65, 48.68, 303.01°)
OKLaboklab(22.39% 0.0022 -0.1182)
OKLCHoklch(22.39% 0.118 271.1)
XYZxyz(1.7802, 0.9599, 7.8744)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D51 #51500C
analogous
#0C2F51 #0C0D51 #2D0C51
triadic
#0C0D51 #510C0D #0D510C
tetradic
#0C0D51 #510C2F #51500C #0C512D
square
#0C0D51 #510C2F #51500C #0C512D
split-complementary
#0C0D51 #512D0C #2F510C
monochromatic
#04041B #04041C #0C0D51 #141686 #1C1EBC

Accessibility & contrast

On white

17.62
#0C0D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C0D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D51
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D51#FFFFFF#000000##FFFFFF
##0C0D511.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C53
Deuteranopia (green-blind)
#001550
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c0d51;
/* rgb */ color: rgb(12, 13, 81);
/* oklch */ color: oklch(22.4% 0.118 271.1);
Tailwind
colors: {
  custom: {
    50: '#5a4c83',
    500: '#0c0d51',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d51;
$custom-light: #5a4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d51",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 81
  },
  "hsl": {
    "h": 239.13,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22387,
    "c": 0.11822,
    "h": 271.1
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#0C0D51
secondary
#8C8B2C
accent
#EE37F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0C0D51

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

Preview Lab → · Contrast checker → · Palette generator →

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