#0D022B#0D022B

#0D022B is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.5% C 0.080 H 287.7°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#0D022B
RGBrgb(13, 2, 43)
HSLhsl(256, 91%, 9%)
HSVhsv(256, 95%, 17%)
CMYKcmyk(69.8%, 95.3%, 0%, 83.1%)
CIE-LABlab(2.74, 13.73, -23.06)
CIE-LCHlch(2.74, 26.84, 300.77°)
OKLaboklab(15.46% 0.0243 -0.0761)
OKLCHoklch(15.46% 0.08 287.7)
XYZxyz(0.6236, 0.3034, 2.3107)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D022B #202B02
analogous
#020C2B #0D022B #22022B
triadic
#0D022B #2B0D02 #022B0D
tetradic
#0D022B #2B020C #202B02 #022B22
square
#0D022B #2B020C #202B02 #022B22
split-complementary
#0D022B #2B2202 #0C2B02
monochromatic
#09011D #09011D #0D022B #1F0565 #3007A0

Accessibility & contrast

On white

19.80
#0D022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D022B
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D022B#FFFFFF#000000##FFFFFF
##0D022B1.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2C
Deuteranopia (green-blind)
#00092A
Tritanopia (blue-blind)
#020C16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0d022b;
/* rgb */ color: rgb(13, 2, 43);
/* oklch */ color: oklch(15.5% 0.080 287.7);
Tailwind
colors: {
  custom: {
    50: '#4d4764',
    500: '#0d022b',
    950: '#000000',
  },
}
SCSS
$custom: #0d022b;
$custom-light: #4d4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0d022b",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 256.098,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15458,
    "c": 0.07984,
    "h": 287.7
  },
  "luminance": 0.00303
}

Semantic roles & 50–950 ramp

primary
#0D022B
secondary
#597019
accent
#FF29C6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0D022B

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

Preview Lab → · Contrast checker → · Palette generator →

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