#0D022A#0D022A

#0D022A is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.3% C 0.078 H 288.4°. Best body text is #FFFFFF at 19.83:1 contrast (WCAG AA passes).

Color values

HEX#0D022A
RGBrgb(13, 2, 42)
HSLhsl(257, 91%, 9%)
HSVhsv(257, 95%, 16%)
CMYKcmyk(69%, 95.2%, 0%, 83.5%)
CIE-LABlab(2.67, 13.28, -22.40)
CIE-LCHlch(2.67, 26.04, 300.65°)
OKLaboklab(15.33% 0.0248 -0.0745)
OKLCHoklch(15.33% 0.078 288.4)
XYZxyz(0.6055, 0.2961, 2.2153)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D022A #1F2A02
analogous
#020B2A #0D022A #21022A
triadic
#0D022A #2A0D02 #022A0D
tetradic
#0D022A #2A020B #1F2A02 #022A21
square
#0D022A #2A020B #1F2A02 #022A21
split-complementary
#0D022A #2A2102 #0B2A02
monochromatic
#09011D #09011D #0D022A #1F0564 #31089F

Accessibility & contrast

On white

19.83
#0D022A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D022A
19.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D022A#FFFFFF#000000##FFFFFF
##0D022A1.0019.831.0619.83
#FFFFFF19.831.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2B
Deuteranopia (green-blind)
#000929
Tritanopia (blue-blind)
#030C15
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0d022a;
/* rgb */ color: rgb(13, 2, 42);
/* oklch */ color: oklch(15.3% 0.078 288.4);
Tailwind
colors: {
  custom: {
    50: '#4d4764',
    500: '#0d022a',
    950: '#000000',
  },
}
SCSS
$custom: #0d022a;
$custom-light: #4d4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0d022a",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 42
  },
  "hsl": {
    "h": 256.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15325,
    "c": 0.07848,
    "h": 288.4
  },
  "luminance": 0.00296
}

Semantic roles & 50–950 ramp

primary
#0D022A
secondary
#576F19
accent
#FF29C4
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0D022A

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

Preview Lab → · Contrast checker → · Palette generator →

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