#2D2152#2D2152

#2D2152 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.1% C 0.086 H 291.4°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2D2152
RGBrgb(45, 33, 82)
HSLhsl(255, 43%, 23%)
HSVhsv(255, 60%, 32%)
CMYKcmyk(45.1%, 59.8%, 0%, 67.8%)
CIE-LABlab(16.77, 19.33, -28.13)
CIE-LCHlch(16.77, 34.13, 304.49°)
OKLaboklab(29.05% 0.0314 -0.0799)
OKLCHoklch(29.05% 0.086 291.4)
XYZxyz(3.1486, 2.2547, 8.2503)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2152 #465221
analogous
#212D52 #2D2152 #462152
triadic
#2D2152 #522D21 #21522D
tetradic
#2D2152 #52212D #465221 #215246
square
#2D2152 #52212D #465221 #215246
split-complementary
#2D2152 #524621 #2D5221
monochromatic
#0C0916 #150F26 #2D2152 #45337E #5D44A9

Accessibility & contrast

On white

14.47
#2D2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2152
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2152#FFFFFF#000000##FFFFFF
##2D21521.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092A54
Deuteranopia (green-blind)
#0B2851
Tritanopia (blue-blind)
#232B36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d2152;
/* rgb */ color: rgb(45, 33, 82);
/* oklch */ color: oklch(29.1% 0.086 291.4);
Tailwind
colors: {
  custom: {
    50: '#695c83',
    500: '#2d2152',
    950: '#000000',
  },
}
SCSS
$custom: #2d2152;
$custom-light: #695c83;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2152",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 254.694,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29051,
    "c": 0.08588,
    "h": 291.4
  },
  "luminance": 0.02255
}

Semantic roles & 50–950 ramp

primary
#2D2152
secondary
#778649
accent
#D255B4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D2152

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

Preview Lab → · Contrast checker → · Palette generator →

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