#0D042B#0D042B

#0D042B is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.075 H 286.2°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#0D042B
RGBrgb(13, 4, 43)
HSLhsl(254, 83%, 9%)
HSVhsv(254, 91%, 17%)
CMYKcmyk(69.8%, 90.7%, 0%, 83.1%)
CIE-LABlab(3.13, 12.93, -22.44)
CIE-LCHlch(3.13, 25.90, 299.95°)
OKLaboklab(15.99% 0.0211 -0.0724)
OKLCHoklch(15.99% 0.075 286.2)
XYZxyz(0.6453, 0.3468, 2.3180)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D042B #222B04
analogous
#040F2B #0D042B #21042B
triadic
#0D042B #2B0D04 #042B0D
tetradic
#0D042B #2B040F #222B04 #042B21
square
#0D042B #2B040F #222B04 #042B21
split-complementary
#0D042B #2B2104 #0F2B04
monochromatic
#08031C #08031C #0D042B #1E0963 #2F0E9B

Accessibility & contrast

On white

19.64
#0D042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0D042B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D042B
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D042B#FFFFFF#000000##FFFFFF
##0D042B1.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#000A2A
Tritanopia (blue-blind)
#020E16
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0d042b;
/* rgb */ color: rgb(13, 4, 43);
/* oklch */ color: oklch(16.0% 0.075 286.2);
Tailwind
colors: {
  custom: {
    50: '#4e4864',
    500: '#0d042b',
    950: '#000000',
  },
}
SCSS
$custom: #0d042b;
$custom-light: #4e4864;
$custom-dark: #000000;
JSON
{
  "hex": "#0d042b",
  "rgb": {
    "r": 13,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 253.846,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15988,
    "c": 0.07543,
    "h": 286.2
  },
  "luminance": 0.00347
}

Semantic roles & 50–950 ramp

primary
#0D042B
secondary
#5B6E1D
accent
#F92ECB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0D042B

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

Preview Lab → · Contrast checker → · Palette generator →

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