#2D1D64#2D1D64

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

Color values

HEX#2D1D64
RGBrgb(45, 29, 100)
HSLhsl(254, 55%, 25%)
HSVhsv(254, 71%, 39%)
CMYKcmyk(55%, 71%, 0%, 60.8%)
CIE-LABlab(17.26, 27.94, -39.36)
CIE-LCHlch(17.26, 48.27, 305.36°)
OKLaboklab(29.87% 0.0352 -0.113)
OKLCHoklch(29.87% 0.118 287.3)
XYZxyz(3.8211, 2.3565, 12.3076)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D64 #54641D
analogous
#1D3064 #2D1D64 #501D64
triadic
#2D1D64 #642D1D #1D642D
tetradic
#2D1D64 #641D30 #54641D #1D6450
square
#2D1D64 #641D30 #54641D #1D6450
split-complementary
#2D1D64 #64501D #30641D
monochromatic
#0B0718 #180F35 #2D1D64 #422B93 #5839C3

Accessibility & contrast

On white

14.27
#2D1D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D1D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D64
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D64#FFFFFF#000000##FFFFFF
##2D1D641.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#182F3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1d64;
/* rgb */ color: rgb(45, 29, 100);
/* oklch */ color: oklch(29.9% 0.118 287.3);
Tailwind
colors: {
  custom: {
    50: '#6c5a91',
    500: '#2d1d64',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d64;
$custom-light: #6c5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d64",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 253.521,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29874,
    "c": 0.11833,
    "h": 287.3
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#2D1D64
secondary
#869944
accent
#DE49BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D1D64

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

Preview Lab → · Contrast checker → · Palette generator →

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