#2D1D4E#2D1D4E

#2D1D4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.087 H 295.3°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2D1D4E
RGBrgb(45, 29, 78)
HSLhsl(260, 46%, 21%)
HSVhsv(260, 63%, 31%)
CMYKcmyk(42.3%, 62.8%, 0%, 69.4%)
CIE-LABlab(15.42, 20.76, -27.59)
CIE-LCHlch(15.42, 34.52, 306.96°)
OKLaboklab(27.96% 0.037 -0.0784)
OKLCHoklch(27.96% 0.087 295.3)
XYZxyz(2.8963, 1.9866, 7.4371)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D4E #3E4E1D
analogous
#1D254E #2D1D4E #451D4E
triadic
#2D1D4E #4E2D1D #1D4E2D
tetradic
#2D1D4E #4E1D25 #3E4E1D #1D4E45
square
#2D1D4E #4E1D25 #3E4E1D #1D4E45
split-complementary
#2D1D4E #4E451D #254E1D
monochromatic
#0D0816 #130C21 #2D1D4E #472E7B #603EA7

Accessibility & contrast

On white

15.03
#2D1D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D1D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D4E
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D4E#FFFFFF#000000##FFFFFF
##2D1D4E1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#09264D
Tritanopia (blue-blind)
#252732
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1d4e;
/* rgb */ color: rgb(45, 29, 78);
/* oklch */ color: oklch(28.0% 0.087 295.3);
Tailwind
colors: {
  custom: {
    50: '#695980',
    500: '#2d1d4e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d4e;
$custom-light: #695980;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d4e",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 259.592,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27956,
    "c": 0.08666,
    "h": 295.3
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#2D1D4E
secondary
#6E8344
accent
#D552AB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D1D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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