#0C0E51#0C0E51

#0C0E51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.117 H 270.9°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#0C0E51
RGBrgb(12, 14, 81)
HSLhsl(238, 74%, 18%)
HSVhsv(238, 85%, 32%)
CMYKcmyk(85.2%, 82.7%, 0%, 68.2%)
CIE-LABlab(8.88, 25.89, -40.45)
CIE-LCHlch(8.88, 48.03, 302.62°)
OKLaboklab(22.54% 0.0018 -0.1171)
OKLCHoklch(22.54% 0.117 270.9)
XYZxyz(1.7934, 0.9861, 7.8788)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E51 #514F0C
analogous
#0C3051 #0C0E51 #2C0C51
triadic
#0C0E51 #510C0E #0E510C
tetradic
#0C0E51 #510C30 #514F0C #0C512C
square
#0C0E51 #510C30 #514F0C #0C512C
split-complementary
#0C0E51 #512C0C #30510C
monochromatic
#04051B #04051C #0C0E51 #141786 #1C20BC

Accessibility & contrast

On white

17.54
#0C0E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C0E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E51
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E51#FFFFFF#000000##FFFFFF
##0C0E511.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001650
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c0e51;
/* rgb */ color: rgb(12, 14, 81);
/* oklch */ color: oklch(22.5% 0.117 270.9);
Tailwind
colors: {
  custom: {
    50: '#5a4d83',
    500: '#0c0e51',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e51;
$custom-light: #5a4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e51",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 238.261,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22544,
    "c": 0.11715,
    "h": 270.9
  },
  "luminance": 0.00986
}

Semantic roles & 50–950 ramp

primary
#0C0E51
secondary
#8C8A2C
accent
#EB37F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0C0E51

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

Preview Lab → · Contrast checker → · Palette generator →

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