#2D1E53#2D1E53

#2D1E53 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.092 H 292.6°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2D1E53
RGBrgb(45, 30, 83)
HSLhsl(257, 47%, 22%)
HSVhsv(257, 64%, 33%)
CMYKcmyk(45.8%, 63.9%, 0%, 67.5%)
CIE-LABlab(16.06, 21.69, -29.95)
CIE-LCHlch(16.06, 36.98, 305.91°)
OKLaboklab(28.55% 0.0356 -0.0853)
OKLCHoklch(28.55% 0.092 292.6)
XYZxyz(3.1074, 2.1109, 8.4257)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E53 #44531E
analogous
#1E2A53 #2D1E53 #481E53
triadic
#2D1E53 #532D1E #1E532D
tetradic
#2D1E53 #531E2A #44531E #1E5348
square
#2D1E53 #531E2A #44531E #1E5348
split-complementary
#2D1E53 #53481E #2A531E
monochromatic
#0C0816 #150E26 #2D1E53 #452E80 #5E3EAD

Accessibility & contrast

On white

14.77
#2D1E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1E53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E53
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E53#FFFFFF#000000##FFFFFF
##2D1E531.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002955
Deuteranopia (green-blind)
#042752
Tritanopia (blue-blind)
#232A35
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1e53;
/* rgb */ color: rgb(45, 30, 83);
/* oklch */ color: oklch(28.5% 0.092 292.6);
Tailwind
colors: {
  custom: {
    50: '#695a84',
    500: '#2d1e53',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e53;
$custom-light: #695a84;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e53",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 83
  },
  "hsl": {
    "h": 256.981,
    "s": 46.903,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2855,
    "c": 0.09243,
    "h": 292.6
  },
  "luminance": 0.02111
}

Semantic roles & 50–950 ramp

primary
#2D1E53
secondary
#758845
accent
#D751B1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2D1E53

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

Preview Lab → · Contrast checker → · Palette generator →

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