#0C0F42#0C0F42

#0C0F42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.094 H 272.3°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#0C0F42
RGBrgb(12, 15, 66)
HSLhsl(237, 69%, 15%)
HSVhsv(237, 82%, 26%)
CMYKcmyk(81.8%, 77.3%, 0%, 74.1%)
CIE-LABlab(7.34, 19.12, -32.51)
CIE-LCHlch(7.34, 37.71, 300.47°)
OKLaboklab(20.9% 0.0038 -0.0941)
OKLCHoklch(20.9% 0.094 272.3)
XYZxyz(1.3055, 0.8130, 5.2413)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F42 #423F0C
analogous
#0C2A42 #0C0F42 #240C42
triadic
#0C0F42 #420C0F #0F420C
tetradic
#0C0F42 #420C2A #423F0C #0C4224
square
#0C0F42 #420C2A #423F0C #0C4224
split-complementary
#0C0F42 #42240C #2A420C
monochromatic
#05061A #05061A #0C0F42 #151B76 #1F27AA

Accessibility & contrast

On white

18.06
#0C0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C0F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0F42
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F42#FFFFFF#000000##FFFFFF
##0C0F421.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#001D27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c0f42;
/* rgb */ color: rgb(12, 15, 66);
/* oklch */ color: oklch(20.9% 0.094 272.3);
Tailwind
colors: {
  custom: {
    50: '#554d77',
    500: '#0c0f42',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f42;
$custom-light: #554d77;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f42",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 236.667,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.20899,
    "c": 0.09418,
    "h": 272.3
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#0C0F42
secondary
#7E792C
accent
#E23CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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