#0A012F#0A012F

#0A012F is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.4% C 0.088 H 281.6°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#0A012F
RGBrgb(10, 1, 47)
HSLhsl(252, 96%, 9%)
HSVhsv(252, 98%, 18%)
CMYKcmyk(78.7%, 97.9%, 0%, 81.6%)
CIE-LABlab(2.63, 15.24, -26.27)
CIE-LCHlch(2.63, 30.37, 300.11°)
OKLaboklab(15.38% 0.0176 -0.086)
OKLCHoklch(15.38% 0.088 281.6)
XYZxyz(0.6490, 0.2914, 2.7108)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A012F #262F01
analogous
#010F2F #0A012F #21012F
triadic
#0A012F #2F0A01 #012F0A
tetradic
#0A012F #2F010F #262F01 #012F21
square
#0A012F #2F010F #262F01 #012F21
split-complementary
#0A012F #2F2101 #0F2F01
monochromatic
#06011E #06011E #0A012F #17026B #2404A7

Accessibility & contrast

On white

19.85
#0A012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0A012F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A012F
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A012F#FFFFFF#000000##FFFFFF
##0A012F1.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B30
Deuteranopia (green-blind)
#00082E
Tritanopia (blue-blind)
#000E18
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0a012f;
/* rgb */ color: rgb(10, 1, 47);
/* oklch */ color: oklch(15.4% 0.088 281.6);
Tailwind
colors: {
  custom: {
    50: '#4d4768',
    500: '#0a012f',
    950: '#000000',
  },
}
SCSS
$custom: #0a012f;
$custom-light: #4d4768;
$custom-dark: #000000;
JSON
{
  "hex": "#0a012f",
  "rgb": {
    "r": 10,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 251.739,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15381,
    "c": 0.08781,
    "h": 281.6
  },
  "luminance": 0.00291
}

Semantic roles & 50–950 ramp

primary
#0A012F
secondary
#627517
accent
#FF29D5
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0A012F

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

Preview Lab → · Contrast checker → · Palette generator →

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