#2D0D54#2D0D54

#2D0D54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.118 H 297.9°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2D0D54
RGBrgb(45, 13, 84)
HSLhsl(267, 73%, 19%)
HSVhsv(267, 85%, 33%)
CMYKcmyk(46.4%, 84.5%, 0%, 67.1%)
CIE-LABlab(12.52, 31.98, -36.39)
CIE-LCHlch(12.52, 48.44, 311.31°)
OKLaboklab(26.04% 0.0553 -0.1042)
OKLCHoklch(26.04% 0.118 297.9)
XYZxyz(2.8259, 1.4858, 8.5237)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D54 #34540D
analogous
#0D1154 #2D0D54 #510D54
triadic
#2D0D54 #542D0D #0D542D
tetradic
#2D0D54 #540D11 #34540D #0D5451
square
#2D0D54 #540D11 #34540D #0D5451
split-complementary
#2D0D54 #54510D #11540D
monochromatic
#0E041A #11051F #2D0D54 #491589 #661DBE

Accessibility & contrast

On white

16.19
#2D0D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D0D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0D54
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D54#FFFFFF#000000##FFFFFF
##2D0D541.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#232030
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d0d54;
/* rgb */ color: rgb(45, 13, 84);
/* oklch */ color: oklch(26.0% 0.118 297.9);
Tailwind
colors: {
  custom: {
    50: '#6b5085',
    500: '#2d0d54',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d54;
$custom-light: #6b5085;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d54",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 267.042,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26039,
    "c": 0.11791,
    "h": 297.9
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#2D0D54
secondary
#638F2E
accent
#F0389D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0D54

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

Preview Lab → · Contrast checker → · Palette generator →

#2D0D54 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva