#2D215E#2D215E

#2D215E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.104 H 287.5°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2D215E
RGBrgb(45, 33, 94)
HSLhsl(252, 48%, 25%)
HSVhsv(252, 65%, 37%)
CMYKcmyk(52.1%, 64.9%, 0%, 63.1%)
CIE-LABlab(17.71, 23.33, -34.66)
CIE-LCHlch(17.71, 41.78, 303.95°)
OKLaboklab(30.04% 0.0312 -0.0991)
OKLCHoklch(30.04% 0.104 287.5)
XYZxyz(3.6458, 2.4536, 10.8690)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D215E #525E21
analogous
#21345E #2D215E #4B215E
triadic
#2D215E #5E2D21 #215E2D
tetradic
#2D215E #5E2134 #525E21 #215E4B
square
#2D215E #5E2134 #525E21 #215E4B
split-complementary
#2D215E #5E4B21 #345E21
monochromatic
#0B0817 #171131 #2D215E #43318B #5841B9

Accessibility & contrast

On white

14.09
#2D215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D215E
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D215E#FFFFFF#000000##FFFFFF
##2D215E1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#1C2F3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d215e;
/* rgb */ color: rgb(45, 33, 94);
/* oklch */ color: oklch(30.0% 0.104 287.5);
Tailwind
colors: {
  custom: {
    50: '#6b5d8c',
    500: '#2d215e',
    950: '#000000',
  },
}
SCSS
$custom: #2d215e;
$custom-light: #6b5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d215e",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 251.803,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30038,
    "c": 0.10395,
    "h": 287.5
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#2D215E
secondary
#849249
accent
#D850BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D215E

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

Preview Lab → · Contrast checker → · Palette generator →

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