#2D1652#2D1652

#2D1652 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.104 H 296.4°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#2D1652
RGBrgb(45, 22, 82)
HSLhsl(263, 58%, 20%)
HSVhsv(263, 73%, 32%)
CMYKcmyk(45.1%, 73.2%, 0%, 67.8%)
CIE-LABlab(14.06, 26.51, -32.50)
CIE-LCHlch(14.06, 41.94, 309.20°)
OKLaboklab(27.08% 0.0461 -0.0928)
OKLCHoklch(27.08% 0.104 296.4)
XYZxyz(2.8917, 1.7408, 8.1647)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1652 #3B5216
analogous
#161D52 #2D1652 #4B1652
triadic
#2D1652 #522D16 #16522D
tetradic
#2D1652 #52161D #3B5216 #16524B
square
#2D1652 #52161D #3B5216 #16524B
split-complementary
#2D1652 #524B16 #1D5216
monochromatic
#0D0618 #130922 #2D1652 #472382 #6230B3

Accessibility & contrast

On white

15.58
#2D1652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D1652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1652
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1652#FFFFFF#000000##FFFFFF
##2D16521.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#242432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d1652;
/* rgb */ color: rgb(45, 22, 82);
/* oklch */ color: oklch(27.1% 0.104 296.4);
Tailwind
colors: {
  custom: {
    50: '#6a5583',
    500: '#2d1652',
    950: '#000000',
  },
}
SCSS
$custom: #2d1652;
$custom-light: #6a5583;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1652",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 263,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27076,
    "c": 0.10361,
    "h": 296.4
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#2D1652
secondary
#6B893A
accent
#E147A6
background
#F6F5F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1652

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

Preview Lab → · Contrast checker → · Palette generator →

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