#0F021B#0F021B

#0F021B is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.8% C 0.058 H 306.6°. Best body text is #FFFFFF at 20.10:1 contrast (WCAG AA passes).

Color values

HEX#0F021B
RGBrgb(15, 2, 27)
HSLhsl(271, 86%, 6%)
HSVhsv(271, 93%, 11%)
CMYKcmyk(44.4%, 92.6%, 0%, 89.4%)
CIE-LABlab(2.02, 8.34, -11.60)
CIE-LCHlch(2.02, 14.29, 305.70°)
OKLaboklab(13.82% 0.0349 -0.0469)
OKLCHoklch(13.82% 0.058 306.6)
XYZxyz(0.4165, 0.2241, 1.0580)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F021B #0E1B02
analogous
#02021B #0F021B #1B021A
triadic
#0F021B #1B0F02 #021B0F
tetradic
#0F021B #1B0202 #0E1B02 #021A1B
square
#0F021B #1B0202 #0E1B02 #021A1B
split-complementary
#0F021B #1A1B02 #021B02
monochromatic
#10021C #10021C #10021C #2F0654 #4E0A8D

Accessibility & contrast

On white

20.10
#0F021B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F021B
20.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F021B#FFFFFF#000000##FFFFFF
##0F021B1.0020.101.0420.10
#FFFFFF20.101.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f021b;
/* rgb */ color: rgb(15, 2, 27);
/* oklch */ color: oklch(13.8% 0.058 306.6);
Tailwind
colors: {
  custom: {
    50: '#4d4757',
    500: '#0f021b',
    950: '#000000',
  },
}
SCSS
$custom: #0f021b;
$custom-light: #4d4757;
$custom-dark: #000000;
JSON
{
  "hex": "#0f021b",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 27
  },
  "hsl": {
    "h": 271.2,
    "s": 86.207,
    "l": 5.686
  },
  "oklch": {
    "l": 0.13823,
    "c": 0.05846,
    "h": 306.6
  },
  "luminance": 0.00224
}

Semantic roles & 50–950 ramp

primary
#0F021B
secondary
#3B6118
accent
#FC2B90
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0F021B

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

Preview Lab → · Contrast checker → · Palette generator →

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