#0C0C51#0C0C51

#0C0C51 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.2% C 0.119 H 271.2°. Best body text is #FFFFFF at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#0C0C51
RGBrgb(12, 12, 81)
HSLhsl(240, 74%, 18%)
HSVhsv(240, 85%, 32%)
CMYKcmyk(85.2%, 85.2%, 0%, 68.2%)
CIE-LABlab(8.44, 27.14, -41.18)
CIE-LCHlch(8.44, 49.32, 303.39°)
OKLaboklab(22.24% 0.0026 -0.1192)
OKLCHoklch(22.24% 0.119 271.2)
XYZxyz(1.7678, 0.9350, 7.8703)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C51 #51510C
analogous
#0C2E51 #0C0C51 #2E0C51
triadic
#0C0C51 #510C0C #0C510C
tetradic
#0C0C51 #510C2E #51510C #0C512E
square
#0C0C51 #510C2E #51510C #0C512E
split-complementary
#0C0C51 #512E0C #2E510C
monochromatic
#04041B #04041C #0C0C51 #141486 #1C1CBC

Accessibility & contrast

On white

17.69
#0C0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0C51
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C51#FFFFFF#000000##FFFFFF
##0C0C511.0017.691.1917.69
#FFFFFF17.691.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0c51;
/* rgb */ color: rgb(12, 12, 81);
/* oklch */ color: oklch(22.2% 0.119 271.2);
Tailwind
colors: {
  custom: {
    50: '#5a4c83',
    500: '#0c0c51',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c51;
$custom-light: #5a4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c51",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 240,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22235,
    "c": 0.11925,
    "h": 271.2
  },
  "luminance": 0.00935
}

Semantic roles & 50–950 ramp

primary
#0C0C51
secondary
#8C8C2C
accent
#F137F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0C0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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