#2D1E63#2D1E63

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

Color values

HEX#2D1E63
RGBrgb(45, 30, 99)
HSLhsl(253, 53%, 25%)
HSVhsv(253, 70%, 39%)
CMYKcmyk(54.5%, 69.7%, 0%, 61.2%)
CIE-LABlab(17.40, 26.97, -38.47)
CIE-LCHlch(17.40, 46.98, 305.04°)
OKLaboklab(29.95% 0.0342 -0.1104)
OKLCHoklch(29.95% 0.116 287.2)
XYZxyz(3.7979, 2.3871, 12.0626)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E63 #54631E
analogous
#1E3263 #2D1E63 #4F1E63
triadic
#2D1E63 #632D1E #1E632D
tetradic
#2D1E63 #631E32 #54631E #1E634F
square
#2D1E63 #631E32 #54631E #1E634F
split-complementary
#2D1E63 #634F1E #32631E
monochromatic
#0B0717 #181034 #2D1E63 #422C92 #583AC1

Accessibility & contrast

On white

14.21
#2D1E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1E63
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E63#FFFFFF#000000##FFFFFF
##2D1E631.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#192F3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1e63;
/* rgb */ color: rgb(45, 30, 99);
/* oklch */ color: oklch(29.9% 0.116 287.2);
Tailwind
colors: {
  custom: {
    50: '#6c5b90',
    500: '#2d1e63',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e63;
$custom-light: #6c5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e63",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 253.043,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29949,
    "c": 0.11555,
    "h": 287.2
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#2D1E63
secondary
#869845
accent
#DD4BBD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D1E63

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

Preview Lab → · Contrast checker → · Palette generator →

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