#0A031B#0A031B

#0A031B is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.4% C 0.054 H 294.4°. Best body text is #FFFFFF at 20.16:1 contrast (WCAG AA passes).

Color values

HEX#0A031B
RGBrgb(10, 3, 27)
HSLhsl(258, 80%, 6%)
HSVhsv(258, 89%, 11%)
CMYKcmyk(63%, 88.9%, 0%, 89.4%)
CIE-LABlab(1.89, 6.43, -11.84)
CIE-LCHlch(1.89, 13.48, 298.51°)
OKLaboklab(13.38% 0.0222 -0.049)
OKLCHoklch(13.38% 0.054 294.4)
XYZxyz(0.3555, 0.2088, 1.0583)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A031B #141B03
analogous
#03081B #0A031B #16031B
triadic
#0A031B #1B0A03 #031B0A
tetradic
#0A031B #1B0308 #141B03 #031B16
square
#0A031B #1B0308 #141B03 #031B16
split-complementary
#0A031B #1B1603 #081B03
monochromatic
#0A031C #0A031C #0A031C #1E0952 #330F89

Accessibility & contrast

On white

20.16
#0A031B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A031B
20.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A031B#FFFFFF#000000##FFFFFF
##0A031B1.0020.161.0420.16
#FFFFFF20.161.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0a031b;
/* rgb */ color: rgb(10, 3, 27);
/* oklch */ color: oklch(13.4% 0.054 294.4);
Tailwind
colors: {
  custom: {
    50: '#4b4857',
    500: '#0a031b',
    950: '#000000',
  },
}
SCSS
$custom: #0a031b;
$custom-light: #4b4857;
$custom-dark: #000000;
JSON
{
  "hex": "#0a031b",
  "rgb": {
    "r": 10,
    "g": 3,
    "b": 27
  },
  "hsl": {
    "h": 257.5,
    "s": 80,
    "l": 5.882
  },
  "oklch": {
    "l": 0.13384,
    "c": 0.05378,
    "h": 294.4
  },
  "luminance": 0.00209
}

Semantic roles & 50–950 ramp

primary
#0A031B
secondary
#4B5F1B
accent
#F631BD
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0A031B

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

Preview Lab → · Contrast checker → · Palette generator →

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