#0F0D42#0F0D42

#0F0D42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.096 H 275.7°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#0F0D42
RGBrgb(15, 13, 66)
HSLhsl(242, 67%, 15%)
HSVhsv(242, 80%, 26%)
CMYKcmyk(77.3%, 80.3%, 0%, 74.1%)
CIE-LABlab(7.07, 20.87, -32.95)
CIE-LCHlch(7.07, 39.00, 302.35°)
OKLaboklab(20.75% 0.0095 -0.0954)
OKLCHoklch(20.75% 0.096 275.7)
XYZxyz(1.3240, 0.7826, 5.2345)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0D42 #40420D
analogous
#0D2542 #0F0D42 #290D42
triadic
#0F0D42 #420F0D #0D420F
tetradic
#0F0D42 #420D25 #40420D #0D4229
square
#0F0D42 #420D25 #40420D #0D4229
split-complementary
#0F0D42 #42290D #25420D
monochromatic
#06051A #06051A #0F0D42 #1B1775 #2621A8

Accessibility & contrast

On white

18.16
#0F0D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0D42
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0D42#FFFFFF#000000##FFFFFF
##0F0D421.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f0d42;
/* rgb */ color: rgb(15, 13, 66);
/* oklch */ color: oklch(20.7% 0.096 275.7);
Tailwind
colors: {
  custom: {
    50: '#564c77',
    500: '#0f0d42',
    950: '#000000',
  },
}
SCSS
$custom: #0f0d42;
$custom-light: #564c77;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0d42",
  "rgb": {
    "r": 15,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 242.264,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20747,
    "c": 0.09587,
    "h": 275.7
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#0F0D42
secondary
#7A7E2D
accent
#EA3EE3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0F0D42

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

Preview Lab → · Contrast checker → · Palette generator →

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