#0F062A#0F062A

#0F062A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.6% C 0.070 H 288.4°. Best body text is #FFFFFF at 19.45:1 contrast (WCAG AA passes).

Color values

HEX#0F062A
RGBrgb(15, 6, 42)
HSLhsl(255, 75%, 9%)
HSVhsv(255, 86%, 16%)
CMYKcmyk(64.3%, 85.7%, 0%, 83.5%)
CIE-LABlab(3.60, 12.32, -20.93)
CIE-LCHlch(3.60, 24.29, 300.48°)
OKLaboklab(16.61% 0.022 -0.0661)
OKLCHoklch(16.61% 0.07 288.4)
XYZxyz(0.6799, 0.3989, 2.2312)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F062A #212A06
analogous
#060F2A #0F062A #21062A
triadic
#0F062A #2A0F06 #062A0F
tetradic
#0F062A #2A060F #212A06 #062A21
square
#0F062A #2A060F #212A06 #062A21
split-complementary
#0F062A #2A2106 #0F2A06
monochromatic
#0A041B #0A041B #0F062A #220E60 #351595

Accessibility & contrast

On white

19.45
#0F062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0F062A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F062A
19.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F062A#FFFFFF#000000##FFFFFF
##0F062A1.0019.451.0819.45
#FFFFFF19.451.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000C29
Tritanopia (blue-blind)
#060F17
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0f062a;
/* rgb */ color: rgb(15, 6, 42);
/* oklch */ color: oklch(16.6% 0.070 288.4);
Tailwind
colors: {
  custom: {
    50: '#4f4964',
    500: '#0f062a',
    950: '#000000',
  },
}
SCSS
$custom: #0f062a;
$custom-light: #4f4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0f062a",
  "rgb": {
    "r": 15,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 255,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16607,
    "c": 0.06965,
    "h": 288.4
  },
  "luminance": 0.00399
}

Semantic roles & 50–950 ramp

primary
#0F062A
secondary
#586B21
accent
#F236C3
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #0F062A

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

Preview Lab → · Contrast checker → · Palette generator →

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