#2D1A5D#2D1A5D

#2D1A5D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.113 H 290.5°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2D1A5D
RGBrgb(45, 26, 93)
HSLhsl(257, 56%, 23%)
HSVhsv(257, 72%, 36%)
CMYKcmyk(51.6%, 72%, 0%, 63.5%)
CIE-LABlab(15.94, 27.52, -36.87)
CIE-LCHlch(15.94, 46.01, 306.74°)
OKLaboklab(28.73% 0.0396 -0.1057)
OKLCHoklch(28.73% 0.113 290.5)
XYZxyz(3.4268, 2.0869, 10.5760)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A5D #4A5D1A
analogous
#1A285D #2D1A5D #4E1A5D
triadic
#2D1A5D #5D2D1A #1A5D2D
tetradic
#2D1A5D #5D1A28 #4A5D1A #1A5D4E
square
#2D1A5D #5D1A28 #4A5D1A #1A5D4E
split-complementary
#2D1A5D #5D4E1A #285D1A
monochromatic
#0C0718 #160D2D #2D1A5D #44278D #5B35BD

Accessibility & contrast

On white

14.82
#2D1A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1A5D
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A5D#FFFFFF#000000##FFFFFF
##2D1A5D1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#1D2B39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1a5d;
/* rgb */ color: rgb(45, 26, 93);
/* oklch */ color: oklch(28.7% 0.113 290.5);
Tailwind
colors: {
  custom: {
    50: '#6b588c',
    500: '#2d1a5d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a5d;
$custom-light: #6b588c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a5d",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 93
  },
  "hsl": {
    "h": 257.015,
    "s": 56.303,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28727,
    "c": 0.11283,
    "h": 290.5
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#2D1A5D
secondary
#7B9340
accent
#E048B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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