#0F0C42#0F0C42

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

Color values

HEX#0F0C42
RGBrgb(15, 12, 66)
HSLhsl(243, 69%, 15%)
HSVhsv(243, 82%, 26%)
CMYKcmyk(77.3%, 81.8%, 0%, 74.1%)
CIE-LABlab(6.84, 21.46, -33.32)
CIE-LCHlch(6.84, 39.63, 302.79°)
OKLaboklab(20.57% 0.0103 -0.0966)
OKLCHoklch(20.57% 0.097 276.1)
XYZxyz(1.3115, 0.7577, 5.2303)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C42 #3F420C
analogous
#0C2442 #0F0C42 #2A0C42
triadic
#0F0C42 #420F0C #0C420F
tetradic
#0F0C42 #420C24 #3F420C #0C422A
square
#0F0C42 #420C24 #3F420C #0C422A
split-complementary
#0F0C42 #422A0C #24420C
monochromatic
#06051A #06051A #0F0C42 #1B1576 #271FAA

Accessibility & contrast

On white

18.24
#0F0C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0C42
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C42#FFFFFF#000000##FFFFFF
##0F0C421.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f0c42;
/* rgb */ color: rgb(15, 12, 66);
/* oklch */ color: oklch(20.6% 0.097 276.1);
Tailwind
colors: {
  custom: {
    50: '#564b77',
    500: '#0f0c42',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c42;
$custom-light: #564b77;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c42",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 243.333,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.20571,
    "c": 0.09712,
    "h": 276.1
  },
  "luminance": 0.00758
}

Semantic roles & 50–950 ramp

primary
#0F0C42
secondary
#797E2C
accent
#EC3CE2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0F0C42

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

Preview Lab → · Contrast checker → · Palette generator →

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