#0A031F#0A031F

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

Color values

HEX#0A031F
RGBrgb(10, 3, 31)
HSLhsl(255, 82%, 7%)
HSVhsv(255, 90%, 12%)
CMYKcmyk(67.7%, 90.3%, 0%, 87.8%)
CIE-LABlab(2.06, 7.69, -14.78)
CIE-LCHlch(2.06, 16.66, 297.48°)
OKLaboklab(13.85% 0.0211 -0.0562)
OKLCHoklch(13.85% 0.06 290.6)
XYZxyz(0.4050, 0.2286, 1.3188)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A031F #181F03
analogous
#030A1F #0A031F #18031F
triadic
#0A031F #1F0A03 #031F0A
tetradic
#0A031F #1F030A #181F03 #031F18
square
#0A031F #1F030A #181F03 #031F18
split-complementary
#0A031F #1F1803 #0A1F03
monochromatic
#09031C #09031C #0A031F #1C0857 #2E0E8F

Accessibility & contrast

On white

20.08
#0A031F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A031F
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A031F#FFFFFF#000000##FFFFFF
##0A031F1.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00071E
Tritanopia (blue-blind)
#04090F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0a031f;
/* rgb */ color: rgb(10, 3, 31);
/* oklch */ color: oklch(13.8% 0.060 290.6);
Tailwind
colors: {
  custom: {
    50: '#4b485a',
    500: '#0a031f',
    950: '#000000',
  },
}
SCSS
$custom: #0a031f;
$custom-light: #4b485a;
$custom-dark: #000000;
JSON
{
  "hex": "#0a031f",
  "rgb": {
    "r": 10,
    "g": 3,
    "b": 31
  },
  "hsl": {
    "h": 255,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.13848,
    "c": 0.06006,
    "h": 290.6
  },
  "luminance": 0.00229
}

Semantic roles & 50–950 ramp

primary
#0A031F
secondary
#51631B
accent
#F92FC6
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #0A031F

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

Preview Lab → · Contrast checker → · Palette generator →

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