#0A021E#0A021E

#0A021E is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.4% C 0.062 H 292.8°. Best body text is #FFFFFF at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#0A021E
RGBrgb(10, 2, 30)
HSLhsl(257, 88%, 6%)
HSVhsv(257, 93%, 12%)
CMYKcmyk(66.7%, 93.3%, 0%, 88.2%)
CIE-LABlab(1.82, 7.76, -14.35)
CIE-LCHlch(1.82, 16.32, 298.41°)
OKLaboklab(13.37% 0.0239 -0.0569)
OKLCHoklch(13.37% 0.062 292.8)
XYZxyz(0.3812, 0.2017, 1.2469)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A021E #161E02
analogous
#02081E #0A021E #18021E
triadic
#0A021E #1E0A02 #021E0A
tetradic
#0A021E #1E0208 #161E02 #021E18
square
#0A021E #1E0208 #161E02 #021E18
split-complementary
#0A021E #1E1802 #081E02
monochromatic
#0A021D #0A021D #0A021E #1D0657 #300A91

Accessibility & contrast

On white

20.18
#0A021E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A021E
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A021E#FFFFFF#000000##FFFFFF
##0A021E1.0020.181.0420.18
#FFFFFF20.181.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071F
Deuteranopia (green-blind)
#00061D
Tritanopia (blue-blind)
#05070E
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0a021e;
/* rgb */ color: rgb(10, 2, 30);
/* oklch */ color: oklch(13.4% 0.062 292.8);
Tailwind
colors: {
  custom: {
    50: '#4b4759',
    500: '#0a021e',
    950: '#000000',
  },
}
SCSS
$custom: #0a021e;
$custom-light: #4b4759;
$custom-dark: #000000;
JSON
{
  "hex": "#0a021e",
  "rgb": {
    "r": 10,
    "g": 2,
    "b": 30
  },
  "hsl": {
    "h": 257.143,
    "s": 87.5,
    "l": 6.275
  },
  "oklch": {
    "l": 0.13372,
    "c": 0.0617,
    "h": 292.8
  },
  "luminance": 0.00202
}

Semantic roles & 50–950 ramp

primary
#0A021E
secondary
#4E6418
accent
#FE2AC1
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0A021E

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

Preview Lab → · Contrast checker → · Palette generator →

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