#0F021F#0F021F

#0F021F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.3% C 0.064 H 301.7°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#0F021F
RGBrgb(15, 2, 31)
HSLhsl(267, 88%, 6%)
HSVhsv(267, 94%, 12%)
CMYKcmyk(51.6%, 93.5%, 0%, 87.8%)
CIE-LABlab(2.20, 9.59, -14.54)
CIE-LCHlch(2.20, 17.42, 303.41°)
OKLaboklab(14.26% 0.0336 -0.0543)
OKLCHoklch(14.26% 0.064 301.7)
XYZxyz(0.4660, 0.2439, 1.3186)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F021F #121F02
analogous
#02031F #0F021F #1E021F
triadic
#0F021F #1F0F02 #021F0F
tetradic
#0F021F #1F0203 #121F02 #021F1E
square
#0F021F #1F0203 #121F02 #021F1E
split-complementary
#0F021F #1F1E02 #031F02
monochromatic
#0E021D #0E021D #0F021F #2B0658 #470992

Accessibility & contrast

On white

20.02
#0F021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0F021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F021F
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F021F#FFFFFF#000000##FFFFFF
##0F021F1.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00081E
Tritanopia (blue-blind)
#0B070F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0f021f;
/* rgb */ color: rgb(15, 2, 31);
/* oklch */ color: oklch(14.3% 0.064 301.7);
Tailwind
colors: {
  custom: {
    50: '#4d475a',
    500: '#0f021f',
    950: '#000000',
  },
}
SCSS
$custom: #0f021f;
$custom-light: #4d475a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f021f",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 266.897,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.14263,
    "c": 0.06382,
    "h": 301.7
  },
  "luminance": 0.00244
}

Semantic roles & 50–950 ramp

primary
#0F021F
secondary
#426518
accent
#FE2A9F
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #0F021F

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

Preview Lab → · Contrast checker → · Palette generator →

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