#2D2452#2D2452

#2D2452 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.7% C 0.081 H 289.5°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#2D2452
RGBrgb(45, 36, 82)
HSLhsl(252, 39%, 23%)
HSVhsv(252, 56%, 32%)
CMYKcmyk(45.1%, 56.1%, 0%, 67.8%)
CIE-LABlab(17.59, 17.25, -26.81)
CIE-LCHlch(17.59, 31.88, 302.76°)
OKLaboklab(29.66% 0.027 -0.0761)
OKLCHoklch(29.66% 0.081 289.5)
XYZxyz(3.2356, 2.4287, 8.2793)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2452 #495224
analogous
#243252 #2D2452 #442452
triadic
#2D2452 #522D24 #24522D
tetradic
#2D2452 #522432 #495224 #245244
square
#2D2452 #522432 #495224 #245244
split-complementary
#2D2452 #524424 #325224
monochromatic
#0C0915 #161127 #2D2452 #44377D #5C49A7

Accessibility & contrast

On white

14.13
#2D2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2452
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2452#FFFFFF#000000##FFFFFF
##2D24521.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#112A51
Tritanopia (blue-blind)
#232E37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d2452;
/* rgb */ color: rgb(45, 36, 82);
/* oklch */ color: oklch(29.7% 0.081 289.5);
Tailwind
colors: {
  custom: {
    50: '#695f83',
    500: '#2d2452',
    950: '#000000',
  },
}
SCSS
$custom: #2d2452;
$custom-light: #695f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2452",
  "rgb": {
    "r": 45,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 251.739,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29662,
    "c": 0.08072,
    "h": 289.5
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#2D2452
secondary
#7A864C
accent
#CF59B8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2D2452

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

Preview Lab → · Contrast checker → · Palette generator →

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