#0A0221#0A0221

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

Color values

HEX#0A0221
RGBrgb(10, 2, 33)
HSLhsl(255, 89%, 7%)
HSVhsv(255, 94%, 13%)
CMYKcmyk(69.7%, 93.9%, 0%, 87.1%)
CIE-LABlab(1.97, 8.78, -16.52)
CIE-LCHlch(1.97, 18.71, 297.99°)
OKLaboklab(13.75% 0.0227 -0.062)
OKLCHoklch(13.75% 0.066 290.1)
XYZxyz(0.4213, 0.2177, 1.4584)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A0221 #192102
analogous
#020A21 #0A0221 #1A0221
triadic
#0A0221 #210A02 #02210A
tetradic
#0A0221 #21020A #192102 #02211A
square
#0A0221 #21020A #192102 #02211A
split-complementary
#0A0221 #211A02 #0A2102
monochromatic
#09021D #09021D #0A0221 #1B055B #2D0994

Accessibility & contrast

On white

20.12
#0A0221 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A0221
20.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A0221#FFFFFF#000000##FFFFFF
##0A02211.0020.121.0420.12
#FFFFFF20.121.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000822
Deuteranopia (green-blind)
#000720
Tritanopia (blue-blind)
#030810
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0a0221;
/* rgb */ color: rgb(10, 2, 33);
/* oklch */ color: oklch(13.8% 0.066 290.1);
Tailwind
colors: {
  custom: {
    50: '#4b475c',
    500: '#0a0221',
    950: '#000000',
  },
}
SCSS
$custom: #0a0221;
$custom-light: #4b475c;
$custom-dark: #000000;
JSON
{
  "hex": "#0a0221",
  "rgb": {
    "r": 10,
    "g": 2,
    "b": 33
  },
  "hsl": {
    "h": 255.484,
    "s": 88.571,
    "l": 6.863
  },
  "oklch": {
    "l": 0.13751,
    "c": 0.06606,
    "h": 290.1
  },
  "luminance": 0.00218
}

Semantic roles & 50–950 ramp

primary
#0A0221
secondary
#526718
accent
#FF29C8
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #0A0221

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

Preview Lab → · Contrast checker → · Palette generator →

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