#0A0C42#0A0C42

#0A0C42 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.2% C 0.099 H 271.8°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#0A0C42
RGBrgb(10, 12, 66)
HSLhsl(238, 74%, 15%)
HSVhsv(238, 85%, 26%)
CMYKcmyk(84.8%, 81.8%, 0%, 74.1%)
CIE-LABlab(6.51, 20.67, -33.88)
CIE-LCHlch(6.51, 39.69, 301.39°)
OKLaboklab(20.2% 0.0031 -0.0986)
OKLCHoklch(20.2% 0.099 271.8)
XYZxyz(1.2397, 0.7207, 5.2270)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A0C42 #42400A
analogous
#0A2842 #0A0C42 #240A42
triadic
#0A0C42 #420A0C #0C420A
tetradic
#0A0C42 #420A28 #42400A #0A4224
square
#0A0C42 #420A28 #42400A #0A4224
split-complementary
#0A0C42 #42240A #28420A
monochromatic
#04051B #04051B #0A0C42 #121677 #1A1FAC

Accessibility & contrast

On white

18.35
#0A0C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0A0C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A0C42
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A0C42#FFFFFF#000000##FFFFFF
##0A0C421.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001241
Tritanopia (blue-blind)
#001B26
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0a0c42;
/* rgb */ color: rgb(10, 12, 66);
/* oklch */ color: oklch(20.2% 0.099 271.8);
Tailwind
colors: {
  custom: {
    50: '#544b77',
    500: '#0a0c42',
    950: '#000000',
  },
}
SCSS
$custom: #0a0c42;
$custom-light: #544b77;
$custom-dark: #000000;
JSON
{
  "hex": "#0a0c42",
  "rgb": {
    "r": 10,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 237.857,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20202,
    "c": 0.09862,
    "h": 271.8
  },
  "luminance": 0.00721
}

Semantic roles & 50–950 ramp

primary
#0A0C42
secondary
#7F7C29
accent
#EA37F0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0A0C42

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

Preview Lab → · Contrast checker → · Palette generator →

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