#0A031C#0A031C

#0A031C is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.5% C 0.055 H 293.4°. Best body text is #FFFFFF at 20.14:1 contrast (WCAG AA passes).

Color values

HEX#0A031C
RGBrgb(10, 3, 28)
HSLhsl(257, 81%, 6%)
HSVhsv(257, 89%, 11%)
CMYKcmyk(64.3%, 89.3%, 0%, 89%)
CIE-LABlab(1.93, 6.73, -12.59)
CIE-LCHlch(1.93, 14.28, 298.14°)
OKLaboklab(13.5% 0.022 -0.0508)
OKLCHoklch(13.5% 0.055 293.4)
XYZxyz(0.3673, 0.2135, 1.1202)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A031C #151C03
analogous
#03081C #0A031C #16031C
triadic
#0A031C #1C0A03 #031C0A
tetradic
#0A031C #1C0308 #151C03 #031C16
square
#0A031C #1C0308 #151C03 #031C16
split-complementary
#0A031C #1C1603 #081C03
monochromatic
#0A031C #0A031C #0A031C #1E0953 #310F8B

Accessibility & contrast

On white

20.14
#0A031C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A031C
20.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A031C#FFFFFF#000000##FFFFFF
##0A031C1.0020.141.0420.14
#FFFFFF20.141.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071D
Deuteranopia (green-blind)
#00071B
Tritanopia (blue-blind)
#05080D
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0a031c;
/* rgb */ color: rgb(10, 3, 28);
/* oklch */ color: oklch(13.5% 0.055 293.4);
Tailwind
colors: {
  custom: {
    50: '#4b4858',
    500: '#0a031c',
    950: '#000000',
  },
}
SCSS
$custom: #0a031c;
$custom-light: #4b4858;
$custom-dark: #000000;
JSON
{
  "hex": "#0a031c",
  "rgb": {
    "r": 10,
    "g": 3,
    "b": 28
  },
  "hsl": {
    "h": 256.8,
    "s": 80.645,
    "l": 6.078
  },
  "oklch": {
    "l": 0.13498,
    "c": 0.05537,
    "h": 293.4
  },
  "luminance": 0.00213
}

Semantic roles & 50–950 ramp

primary
#0A031C
secondary
#4D601B
accent
#F731C0
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0A031C

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

Preview Lab → · Contrast checker → · Palette generator →

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