#0F0942#0F0942

#0F0942 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.1% C 0.101 H 277.0°. Best body text is #FFFFFF at 18.45:1 contrast (WCAG AA passes).

Color values

HEX#0F0942
RGBrgb(15, 9, 66)
HSLhsl(246, 76%, 15%)
HSVhsv(246, 86%, 26%)
CMYKcmyk(77.3%, 86.4%, 0%, 74.1%)
CIE-LABlab(6.23, 23.05, -34.32)
CIE-LCHlch(6.23, 41.34, 303.89°)
OKLaboklab(20.08% 0.0123 -0.0999)
OKLCHoklch(20.08% 0.101 277)
XYZxyz(1.2777, 0.6902, 5.2191)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0942 #3C4209
analogous
#092042 #0F0942 #2C0942
triadic
#0F0942 #420F09 #09420F
tetradic
#0F0942 #420920 #3C4209 #09422C
square
#0F0942 #420920 #3C4209 #09422C
split-complementary
#0F0942 #422C09 #204209
monochromatic
#06041B #06041B #0F0942 #1B1078 #2718AE

Accessibility & contrast

On white

18.45
#0F0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0942
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0942#FFFFFF#000000##FFFFFF
##0F09421.0018.451.1418.45
#FFFFFF18.451.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001141
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0f0942;
/* rgb */ color: rgb(15, 9, 66);
/* oklch */ color: oklch(20.1% 0.101 277.0);
Tailwind
colors: {
  custom: {
    50: '#574a77',
    500: '#0f0942',
    950: '#000000',
  },
}
SCSS
$custom: #0f0942;
$custom-light: #574a77;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0942",
  "rgb": {
    "r": 15,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 246.316,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20077,
    "c": 0.10066,
    "h": 277
  },
  "luminance": 0.0069
}

Semantic roles & 50–950 ramp

primary
#0F0942
secondary
#768027
accent
#F335DF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0F0942

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

Preview Lab → · Contrast checker → · Palette generator →

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