#0F021E#0F021E

#0F021E is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.2% C 0.062 H 302.9°. Best body text is #FFFFFF at 20.04:1 contrast (WCAG AA passes).

Color values

HEX#0F021E
RGBrgb(15, 2, 30)
HSLhsl(268, 88%, 6%)
HSVhsv(268, 93%, 12%)
CMYKcmyk(50%, 93.3%, 0%, 88.2%)
CIE-LABlab(2.16, 9.26, -13.82)
CIE-LCHlch(2.16, 16.64, 303.84°)
OKLaboklab(14.15% 0.0339 -0.0525)
OKLCHoklch(14.15% 0.062 302.9)
XYZxyz(0.4530, 0.2387, 1.2503)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F021E #111E02
analogous
#02031E #0F021E #1D021E
triadic
#0F021E #1E0F02 #021E0F
tetradic
#0F021E #1E0203 #111E02 #021E1D
square
#0F021E #1E0203 #111E02 #021E1D
split-complementary
#0F021E #1E1D02 #031E02
monochromatic
#0E021D #0E021D #0F021E #2C0657 #480A91

Accessibility & contrast

On white

20.04
#0F021E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F021E
20.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F021E#FFFFFF#000000##FFFFFF
##0F021E1.0020.041.0520.04
#FFFFFF20.041.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00081F
Deuteranopia (green-blind)
#00081D
Tritanopia (blue-blind)
#0C070E
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0f021e;
/* rgb */ color: rgb(15, 2, 30);
/* oklch */ color: oklch(14.2% 0.062 302.9);
Tailwind
colors: {
  custom: {
    50: '#4d4759',
    500: '#0f021e',
    950: '#000000',
  },
}
SCSS
$custom: #0f021e;
$custom-light: #4d4759;
$custom-dark: #000000;
JSON
{
  "hex": "#0f021e",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 30
  },
  "hsl": {
    "h": 267.857,
    "s": 87.5,
    "l": 6.275
  },
  "oklch": {
    "l": 0.14151,
    "c": 0.06247,
    "h": 302.9
  },
  "luminance": 0.00239
}

Semantic roles & 50–950 ramp

primary
#0F021E
secondary
#416418
accent
#FE2A9B
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0F021E

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

Preview Lab → · Contrast checker → · Palette generator →

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