#0B021A#0B021A

#0B021A is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.0% C 0.056 H 299.3°. Best body text is #FFFFFF at 20.24:1 contrast (WCAG AA passes).

Color values

HEX#0B021A
RGBrgb(11, 2, 26)
HSLhsl(263, 86%, 5%)
HSVhsv(263, 92%, 10%)
CMYKcmyk(57.7%, 92.3%, 0%, 89.8%)
CIE-LABlab(1.71, 6.82, -11.29)
CIE-LCHlch(1.71, 13.19, 301.12°)
OKLaboklab(13.05% 0.0274 -0.0488)
OKLCHoklch(13.05% 0.056 299.3)
XYZxyz(0.3461, 0.1891, 0.9954)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B021A #111A02
analogous
#02051A #0B021A #17021A
triadic
#0B021A #1A0B02 #021A0B
tetradic
#0B021A #1A0205 #111A02 #021A17
square
#0B021A #1A0205 #111A02 #021A17
split-complementary
#0B021A #1A1702 #051A02
monochromatic
#0C021C #0C021C #0C021C #230653 #3B0B8C

Accessibility & contrast

On white

20.24
#0B021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B021A
20.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B021A#FFFFFF#000000##FFFFFF
##0B021A1.0020.241.0420.24
#FFFFFF20.241.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00061B
Deuteranopia (green-blind)
#000619
Tritanopia (blue-blind)
#08060C
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #0b021a;
/* rgb */ color: rgb(11, 2, 26);
/* oklch */ color: oklch(13.0% 0.056 299.3);
Tailwind
colors: {
  custom: {
    50: '#4b4756',
    500: '#0b021a',
    950: '#000000',
  },
}
SCSS
$custom: #0b021a;
$custom-light: #4b4756;
$custom-dark: #000000;
JSON
{
  "hex": "#0b021a",
  "rgb": {
    "r": 11,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 262.5,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.13046,
    "c": 0.05598,
    "h": 299.3
  },
  "luminance": 0.00189
}

Semantic roles & 50–950 ramp

primary
#0B021A
secondary
#456018
accent
#FC2CAE
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0B021A

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

Preview Lab → · Contrast checker → · Palette generator →

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