#0A022C#0A022C

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

Color values

HEX#0A022C
RGBrgb(10, 2, 44)
HSLhsl(251, 91%, 9%)
HSVhsv(251, 95%, 17%)
CMYKcmyk(77.3%, 95.5%, 0%, 82.7%)
CIE-LABlab(2.62, 13.35, -24.03)
CIE-LCHlch(2.62, 27.49, 299.06°)
OKLaboklab(15.23% 0.0177 -0.0796)
OKLCHoklch(15.23% 0.082 282.6)
XYZxyz(0.6014, 0.2898, 2.4066)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A022C #242C02
analogous
#020F2C #0A022C #1F022C
triadic
#0A022C #2C0A02 #022C0A
tetradic
#0A022C #2C020F #242C02 #022C1F
square
#0A022C #2C020F #242C02 #022C1F
split-complementary
#0A022C #2C1F02 #0F2C02
monochromatic
#07011D #07011D #0A022C #170567 #2507A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0A022C#FFFFFF#000000##FFFFFF
##0A022C1.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)
#000B2D
Deuteranopia (green-blind)
#00082B
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0a022c;
/* rgb */ color: rgb(10, 2, 44);
/* oklch */ color: oklch(15.2% 0.082 282.6);
Tailwind
colors: {
  custom: {
    50: '#4c4765',
    500: '#0a022c',
    950: '#000000',
  },
}
SCSS
$custom: #0a022c;
$custom-light: #4c4765;
$custom-dark: #000000;
JSON
{
  "hex": "#0a022c",
  "rgb": {
    "r": 10,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 251.429,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15231,
    "c": 0.0816,
    "h": 282.6
  },
  "luminance": 0.0029
}

Semantic roles & 50–950 ramp

primary
#0A022C
secondary
#607119
accent
#FF29D6
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0A022C

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

Preview Lab → · Contrast checker → · Palette generator →

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