#0F021D#0F021D

#0F021D is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.0% C 0.061 H 304.1°. Best body text is #FFFFFF at 20.06:1 contrast (WCAG AA passes).

Color values

HEX#0F021D
RGBrgb(15, 2, 29)
HSLhsl(269, 87%, 6%)
HSVhsv(269, 93%, 11%)
CMYKcmyk(48.3%, 93.1%, 0%, 88.6%)
CIE-LABlab(2.11, 8.94, -13.08)
CIE-LCHlch(2.11, 15.85, 304.35°)
OKLaboklab(14.04% 0.0343 -0.0506)
OKLCHoklch(14.04% 0.061 304.1)
XYZxyz(0.4404, 0.2337, 1.1841)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F021D #101D02
analogous
#02021D #0F021D #1C021D
triadic
#0F021D #1D0F02 #021D0F
tetradic
#0F021D #1D0202 #101D02 #021D1C
square
#0F021D #1D0202 #101D02 #021D1C
split-complementary
#0F021D #1D1C02 #021D02
monochromatic
#0F021D #0F021D #0F021D #2D0656 #4A0A90

Accessibility & contrast

On white

20.06
#0F021D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F021D
20.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F021D#FFFFFF#000000##FFFFFF
##0F021D1.0020.061.0520.06
#FFFFFF20.061.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071E
Deuteranopia (green-blind)
#00081C
Tritanopia (blue-blind)
#0C070D
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0f021d;
/* rgb */ color: rgb(15, 2, 29);
/* oklch */ color: oklch(14.0% 0.061 304.1);
Tailwind
colors: {
  custom: {
    50: '#4d4758',
    500: '#0f021d',
    950: '#000000',
  },
}
SCSS
$custom: #0f021d;
$custom-light: #4d4758;
$custom-dark: #000000;
JSON
{
  "hex": "#0f021d",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 29
  },
  "hsl": {
    "h": 268.889,
    "s": 87.097,
    "l": 6.078
  },
  "oklch": {
    "l": 0.1404,
    "c": 0.06113,
    "h": 304.1
  },
  "luminance": 0.00234
}

Semantic roles & 50–950 ramp

primary
#0F021D
secondary
#3F6318
accent
#FD2B98
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0F021D

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

Preview Lab → · Contrast checker → · Palette generator →

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