#2D0D52#2D0D52

#2D0D52 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.116 H 298.9°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2D0D52
RGBrgb(45, 13, 82)
HSLhsl(268, 73%, 19%)
HSVhsv(268, 84%, 32%)
CMYKcmyk(45.1%, 84.1%, 0%, 67.8%)
CIE-LABlab(12.32, 31.41, -35.35)
CIE-LCHlch(12.32, 47.29, 311.62°)
OKLaboklab(25.84% 0.0559 -0.1011)
OKLCHoklch(25.84% 0.116 298.9)
XYZxyz(2.7487, 1.4549, 8.1170)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D0D52 #32520D
analogous
#0D0F52 #2D0D52 #4F0D52
triadic
#2D0D52 #522D0D #0D522D
tetradic
#2D0D52 #520D0F #32520D #0D524F
square
#2D0D52 #520D0F #32520D #0D524F
split-complementary
#2D0D52 #524F0D #0F520D
monochromatic
#0E041A #10051D #2D0D52 #4A1587 #671EBC

Accessibility & contrast

On white

16.27
#2D0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D0D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D0D52
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D0D52#FFFFFF#000000##FFFFFF
##2D0D521.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#24202F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d0d52;
/* rgb */ color: rgb(45, 13, 82);
/* oklch */ color: oklch(25.8% 0.116 298.9);
Tailwind
colors: {
  custom: {
    50: '#6b5083',
    500: '#2d0d52',
    950: '#000000',
  },
}
SCSS
$custom: #2d0d52;
$custom-light: #6b5083;
$custom-dark: #000000;
JSON
{
  "hex": "#2d0d52",
  "rgb": {
    "r": 45,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 267.826,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25838,
    "c": 0.11553,
    "h": 298.9
  },
  "luminance": 0.01455
}

Semantic roles & 50–950 ramp

primary
#2D0D52
secondary
#618D2E
accent
#EF389B
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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