#0F0742#0F0742

#0F0742 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.7% C 0.103 H 277.6°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#0F0742
RGBrgb(15, 7, 66)
HSLhsl(248, 81%, 14%)
HSVhsv(248, 89%, 26%)
CMYKcmyk(77.3%, 89.4%, 0%, 74.1%)
CIE-LABlab(5.84, 24.06, -34.96)
CIE-LCHlch(5.84, 42.44, 304.54°)
OKLaboklab(19.75% 0.0136 -0.1021)
OKLCHoklch(19.75% 0.103 277.6)
XYZxyz(1.2560, 0.6468, 5.2118)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0742 #3A4207
analogous
#071D42 #0F0742 #2D0742
triadic
#0F0742 #420F07 #07420F
tetradic
#0F0742 #42071D #3A4207 #07422D
square
#0F0742 #42071D #3A4207 #07422D
split-complementary
#0F0742 #422D07 #1D4207
monochromatic
#06031C #06031C #0F0742 #1C0D79 #2813B1

Accessibility & contrast

On white

18.59
#0F0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0F0742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0742
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0742#FFFFFF#000000##FFFFFF
##0F07421.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#001041
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0f0742;
/* rgb */ color: rgb(15, 7, 66);
/* oklch */ color: oklch(19.7% 0.103 277.6);
Tailwind
colors: {
  custom: {
    50: '#574977',
    500: '#0f0742',
    950: '#000000',
  },
}
SCSS
$custom: #0f0742;
$custom-light: #574977;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0742",
  "rgb": {
    "r": 15,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 248.136,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.19746,
    "c": 0.10305,
    "h": 277.6
  },
  "luminance": 0.00647
}

Semantic roles & 50–950 ramp

primary
#0F0742
secondary
#748124
accent
#F731DC
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040009
muted
#79777B

Preview Lab

Preview with #0F0742

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

Preview Lab → · Contrast checker → · Palette generator →

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