#0C0F51#0C0F51

#0C0F51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.7% C 0.116 H 270.7°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#0C0F51
RGBrgb(12, 15, 81)
HSLhsl(237, 74%, 18%)
HSVhsv(237, 85%, 32%)
CMYKcmyk(85.2%, 81.5%, 0%, 68.2%)
CIE-LABlab(9.11, 25.24, -40.07)
CIE-LCHlch(9.11, 47.36, 302.20°)
OKLaboklab(22.71% 0.0014 -0.116)
OKLCHoklch(22.71% 0.116 270.7)
XYZxyz(1.8071, 1.0137, 7.8834)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F51 #514E0C
analogous
#0C3151 #0C0F51 #2B0C51
triadic
#0C0F51 #510C0F #0F510C
tetradic
#0C0F51 #510C31 #514E0C #0C512B
square
#0C0F51 #510C31 #514E0C #0C512B
split-complementary
#0C0F51 #512B0C #31510C
monochromatic
#04051B #04051C #0C0F51 #141986 #1C23BC

Accessibility & contrast

On white

17.46
#0C0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0F51
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F51#FFFFFF#000000##FFFFFF
##0C0F511.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0f51;
/* rgb */ color: rgb(12, 15, 81);
/* oklch */ color: oklch(22.7% 0.116 270.7);
Tailwind
colors: {
  custom: {
    50: '#5a4e83',
    500: '#0c0f51',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f51;
$custom-light: #5a4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f51",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 237.391,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22707,
    "c": 0.11606,
    "h": 270.7
  },
  "luminance": 0.01014
}

Semantic roles & 50–950 ramp

primary
#0C0F51
secondary
#8C882C
accent
#E937F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0C0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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