#0F021A#0F021A

#0F021A is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.7% C 0.057 H 308.0°. Best body text is #FFFFFF at 20.11:1 contrast (WCAG AA passes).

Color values

HEX#0F021A
RGBrgb(15, 2, 26)
HSLhsl(273, 86%, 5%)
HSVhsv(273, 92%, 10%)
CMYKcmyk(42.3%, 92.3%, 0%, 89.8%)
CIE-LABlab(1.98, 8.04, -10.85)
CIE-LCHlch(1.98, 13.51, 306.55°)
OKLaboklab(13.72% 0.0351 -0.045)
OKLCHoklch(13.72% 0.057 308)
XYZxyz(0.4051, 0.2196, 0.9981)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F021A #0D1A02
analogous
#03021A #0F021A #1A0219
triadic
#0F021A #1A0F02 #021A0F
tetradic
#0F021A #1A0302 #0D1A02 #02191A
square
#0F021A #1A0302 #0D1A02 #02191A
split-complementary
#0F021A #191A02 #021A03
monochromatic
#10021C #10021C #10021C #300653 #510B8C

Accessibility & contrast

On white

20.11
#0F021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#0F021A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F021A
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F021A#FFFFFF#000000##FFFFFF
##0F021A1.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071B
Deuteranopia (green-blind)
#000719
Tritanopia (blue-blind)
#0D060C
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0f021a;
/* rgb */ color: rgb(15, 2, 26);
/* oklch */ color: oklch(13.7% 0.057 308.0);
Tailwind
colors: {
  custom: {
    50: '#4d4756',
    500: '#0f021a',
    950: '#000000',
  },
}
SCSS
$custom: #0f021a;
$custom-light: #4d4756;
$custom-dark: #000000;
JSON
{
  "hex": "#0f021a",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 272.5,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.13718,
    "c": 0.05712,
    "h": 308
  },
  "luminance": 0.0022
}

Semantic roles & 50–950 ramp

primary
#0F021A
secondary
#396018
accent
#FC2C8B
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0F021A

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

Preview Lab → · Contrast checker → · Palette generator →

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