#2D205F#2D205F

#2D205F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.107 H 287.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2D205F
RGBrgb(45, 32, 95)
HSLhsl(252, 50%, 25%)
HSVhsv(252, 66%, 37%)
CMYKcmyk(52.6%, 66.3%, 0%, 62.7%)
CIE-LABlab(17.54, 24.34, -35.60)
CIE-LCHlch(17.54, 43.12, 304.36°)
OKLaboklab(29.94% 0.0324 -0.1019)
OKLCHoklch(29.94% 0.107 287.6)
XYZxyz(3.6637, 2.4170, 11.0977)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D205F #525F20
analogous
#20335F #2D205F #4D205F
triadic
#2D205F #5F2D20 #205F2D
tetradic
#2D205F #5F2033 #525F20 #205F4D
square
#2D205F #5F2033 #525F20 #205F4D
split-complementary
#2D205F #5F4D20 #335F20
monochromatic
#0B0817 #171131 #2D205F #432F8D #583FBB

Accessibility & contrast

On white

14.16
#2D205F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D205F
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D205F#FFFFFF#000000##FFFFFF
##2D205F1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#1C2F3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d205f;
/* rgb */ color: rgb(45, 32, 95);
/* oklch */ color: oklch(29.9% 0.107 287.6);
Tailwind
colors: {
  custom: {
    50: '#6b5c8d',
    500: '#2d205f',
    950: '#000000',
  },
}
SCSS
$custom: #2d205f;
$custom-light: #6b5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d205f",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 95
  },
  "hsl": {
    "h": 252.381,
    "s": 49.606,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29941,
    "c": 0.10692,
    "h": 287.6
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#2D205F
secondary
#849347
accent
#D94FBD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D205F

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

Preview Lab → · Contrast checker → · Palette generator →

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