#0C0D42#0C0D42

#0C0D42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.097 H 273.1°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#0C0D42
RGBrgb(12, 13, 66)
HSLhsl(239, 69%, 15%)
HSVhsv(239, 82%, 26%)
CMYKcmyk(81.8%, 80.3%, 0%, 74.1%)
CIE-LABlab(6.86, 20.39, -33.30)
CIE-LCHlch(6.86, 39.05, 301.48°)
OKLaboklab(20.52% 0.0052 -0.0966)
OKLCHoklch(20.52% 0.097 273.1)
XYZxyz(1.2786, 0.7592, 5.2324)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D42 #42410C
analogous
#0C2842 #0C0D42 #260C42
triadic
#0C0D42 #420C0D #0D420C
tetradic
#0C0D42 #420C28 #42410C #0C4226
square
#0C0D42 #420C28 #42410C #0C4226
split-complementary
#0C0D42 #42260C #28420C
monochromatic
#05051A #05051A #0C0D42 #151776 #1F21AA

Accessibility & contrast

On white

18.23
#0C0D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0C0D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D42
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D42#FFFFFF#000000##FFFFFF
##0C0D421.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001C26
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c0d42;
/* rgb */ color: rgb(12, 13, 66);
/* oklch */ color: oklch(20.5% 0.097 273.1);
Tailwind
colors: {
  custom: {
    50: '#554c77',
    500: '#0c0d42',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d42;
$custom-light: #554c77;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d42",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 238.889,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2052,
    "c": 0.09676,
    "h": 273.1
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#0C0D42
secondary
#7E7D2C
accent
#E93CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0D42

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

Preview Lab → · Contrast checker → · Palette generator →

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