#2D205D#2D205D

#2D205D is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.104 H 288.2°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2D205D
RGBrgb(45, 32, 93)
HSLhsl(253, 49%, 25%)
HSVhsv(253, 66%, 36%)
CMYKcmyk(51.6%, 65.6%, 0%, 63.5%)
CIE-LABlab(17.37, 23.66, -34.54)
CIE-LCHlch(17.37, 41.87, 304.42°)
OKLaboklab(29.77% 0.0325 -0.0988)
OKLCHoklch(29.77% 0.104 288.2)
XYZxyz(3.5739, 2.3811, 10.6251)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D205D #505D20
analogous
#20325D #2D205D #4C205D
triadic
#2D205D #5D2D20 #205D2D
tetradic
#2D205D #5D2032 #505D20 #205D4C
square
#2D205D #5D2032 #505D20 #205D4C
split-complementary
#2D205D #5D4C20 #325D20
monochromatic
#0B0817 #17102F #2D205D #43308B #593FB8

Accessibility & contrast

On white

14.23
#2D205D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D205D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D205D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D205D#FFFFFF#000000##FFFFFF
##2D205D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#1D2E3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d205d;
/* rgb */ color: rgb(45, 32, 93);
/* oklch */ color: oklch(29.8% 0.104 288.2);
Tailwind
colors: {
  custom: {
    50: '#6b5c8b',
    500: '#2d205d',
    950: '#000000',
  },
}
SCSS
$custom: #2d205d;
$custom-light: #6b5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d205d",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 93
  },
  "hsl": {
    "h": 252.787,
    "s": 48.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29767,
    "c": 0.10401,
    "h": 288.2
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#2D205D
secondary
#829147
accent
#D84FBB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D205D

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

Preview Lab → · Contrast checker → · Palette generator →

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