#0B031F#0B031F

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

Color values

HEX#0B031F
RGBrgb(11, 3, 31)
HSLhsl(257, 82%, 7%)
HSVhsv(257, 90%, 12%)
CMYKcmyk(64.5%, 90.3%, 0%, 87.8%)
CIE-LABlab(2.12, 7.96, -14.69)
CIE-LCHlch(2.12, 16.71, 298.45°)
OKLaboklab(13.99% 0.0231 -0.0555)
OKLCHoklch(13.99% 0.06 292.6)
XYZxyz(0.4178, 0.2352, 1.3194)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B031F #171F03
analogous
#03091F #0B031F #19031F
triadic
#0B031F #1F0B03 #031F0B
tetradic
#0B031F #1F0309 #171F03 #031F19
square
#0B031F #1F0309 #171F03 #031F19
split-complementary
#0B031F #1F1903 #091F03
monochromatic
#0A031C #0A031C #0B031F #1F0857 #330E8F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0B031F#FFFFFF#000000##FFFFFF
##0B031F1.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)
#000820
Deuteranopia (green-blind)
#00071E
Tritanopia (blue-blind)
#06090F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0b031f;
/* rgb */ color: rgb(11, 3, 31);
/* oklch */ color: oklch(14.0% 0.060 292.6);
Tailwind
colors: {
  custom: {
    50: '#4b485a',
    500: '#0b031f',
    950: '#000000',
  },
}
SCSS
$custom: #0b031f;
$custom-light: #4b485a;
$custom-dark: #000000;
JSON
{
  "hex": "#0b031f",
  "rgb": {
    "r": 11,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 257.143,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.13985,
    "c": 0.06008,
    "h": 292.6
  },
  "luminance": 0.00235
}

Semantic roles & 50–950 ramp

primary
#0B031F
secondary
#4E631B
accent
#F92FBF
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #0B031F

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

Preview Lab → · Contrast checker → · Palette generator →

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