#0A022F#0A022F

#0A022F is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.7% C 0.086 H 281.0°. Best body text is #FFFFFF at 19.76:1 contrast (WCAG AA passes).

Color values

HEX#0A022F
RGBrgb(10, 2, 47)
HSLhsl(251, 92%, 10%)
HSVhsv(251, 96%, 18%)
CMYKcmyk(78.7%, 95.7%, 0%, 81.6%)
CIE-LABlab(2.83, 14.84, -25.96)
CIE-LCHlch(2.83, 29.90, 299.75°)
OKLaboklab(15.65% 0.0164 -0.0841)
OKLCHoklch(15.65% 0.086 281)
XYZxyz(0.6598, 0.3131, 2.7144)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A022F #272F02
analogous
#02102F #0A022F #21022F
triadic
#0A022F #2F0A02 #022F0A
tetradic
#0A022F #2F0210 #272F02 #022F21
square
#0A022F #2F0210 #272F02 #022F21
split-complementary
#0A022F #2F2102 #102F02
monochromatic
#06011D #06011D #0A022F #16046A #2307A4

Accessibility & contrast

On white

19.76
#0A022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A022F
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A022F#FFFFFF#000000##FFFFFF
##0A022F1.0019.761.0619.76
#FFFFFF19.761.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0a022f;
/* rgb */ color: rgb(10, 2, 47);
/* oklch */ color: oklch(15.7% 0.086 281.0);
Tailwind
colors: {
  custom: {
    50: '#4d4768',
    500: '#0a022f',
    950: '#000000',
  },
}
SCSS
$custom: #0a022f;
$custom-light: #4d4768;
$custom-dark: #000000;
JSON
{
  "hex": "#0a022f",
  "rgb": {
    "r": 10,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 250.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15653,
    "c": 0.08573,
    "h": 281
  },
  "luminance": 0.00313
}

Semantic roles & 50–950 ramp

primary
#0A022F
secondary
#647419
accent
#FF29D9
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0A022F

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

Preview Lab → · Contrast checker → · Palette generator →

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