#2D1D52#2D1D52

#2D1D52 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.093 H 293.5°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2D1D52
RGBrgb(45, 29, 82)
HSLhsl(258, 48%, 22%)
HSVhsv(258, 65%, 32%)
CMYKcmyk(45.1%, 64.6%, 0%, 67.8%)
CIE-LABlab(15.73, 22.04, -29.81)
CIE-LCHlch(15.73, 37.08, 306.47°)
OKLaboklab(28.28% 0.0369 -0.0849)
OKLCHoklch(28.28% 0.093 293.5)
XYZxyz(3.0441, 2.0457, 8.2155)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D52 #42521D
analogous
#1D2852 #2D1D52 #481D52
triadic
#2D1D52 #522D1D #1D522D
tetradic
#2D1D52 #521D28 #42521D #1D5248
square
#2D1D52 #521D28 #42521D #1D5248
split-complementary
#2D1D52 #52481D #28521D
monochromatic
#0C0817 #140D25 #2D1D52 #462D7F #5F3DAC

Accessibility & contrast

On white

14.90
#2D1D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D1D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D52
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D52#FFFFFF#000000##FFFFFF
##2D1D521.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#032651
Tritanopia (blue-blind)
#232934
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1d52;
/* rgb */ color: rgb(45, 29, 82);
/* oklch */ color: oklch(28.3% 0.093 293.5);
Tailwind
colors: {
  custom: {
    50: '#695983',
    500: '#2d1d52',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d52;
$custom-light: #695983;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d52",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 258.113,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28281,
    "c": 0.09259,
    "h": 293.5
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#2D1D52
secondary
#738744
accent
#D750AF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D1D52

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

Preview Lab → · Contrast checker → · Palette generator →

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