#0F0642#0F0642

#0F0642 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.6% C 0.104 H 277.9°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#0F0642
RGBrgb(15, 6, 66)
HSLhsl(249, 83%, 14%)
HSVhsv(249, 91%, 26%)
CMYKcmyk(77.3%, 90.9%, 0%, 74.1%)
CIE-LABlab(5.65, 24.57, -35.28)
CIE-LCHlch(5.65, 42.99, 304.85°)
OKLaboklab(19.58% 0.0143 -0.1033)
OKLCHoklch(19.58% 0.104 277.9)
XYZxyz(1.2452, 0.6250, 5.2082)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0642 #394206
analogous
#061B42 #0F0642 #2D0642
triadic
#0F0642 #420F06 #06420F
tetradic
#0F0642 #42061B #394206 #06422D
square
#0F0642 #42061B #394206 #06422D
split-complementary
#0F0642 #422D06 #1B4206
monochromatic
#06031C #06031C #0F0642 #1C0B7A #2910B2

Accessibility & contrast

On white

18.67
#0F0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0642
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0642#FFFFFF#000000##FFFFFF
##0F06421.0018.671.1318.67
#FFFFFF18.671.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f0642;
/* rgb */ color: rgb(15, 6, 66);
/* oklch */ color: oklch(19.6% 0.104 277.9);
Tailwind
colors: {
  custom: {
    50: '#574877',
    500: '#0f0642',
    950: '#000000',
  },
}
SCSS
$custom: #0f0642;
$custom-light: #574877;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0642",
  "rgb": {
    "r": 15,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 249,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.19577,
    "c": 0.10428,
    "h": 277.9
  },
  "luminance": 0.00625
}

Semantic roles & 50–950 ramp

primary
#0F0642
secondary
#738222
accent
#FA2EDB
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040009
muted
#79777B

Preview Lab

Preview with #0F0642

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

Preview Lab → · Contrast checker → · Palette generator →

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