#2D1B53#2D1B53

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

Color values

HEX#2D1B53
RGBrgb(45, 27, 83)
HSLhsl(259, 51%, 22%)
HSVhsv(259, 67%, 33%)
CMYKcmyk(45.8%, 67.5%, 0%, 67.5%)
CIE-LABlab(15.31, 23.67, -31.16)
CIE-LCHlch(15.31, 39.14, 307.22°)
OKLaboklab(28% 0.0396 -0.0889)
OKLCHoklch(28% 0.097 294)
XYZxyz(3.0350, 1.9662, 8.4015)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B53 #41531B
analogous
#1B2553 #2D1B53 #491B53
triadic
#2D1B53 #532D1B #1B532D
tetradic
#2D1B53 #531B25 #41531B #1B5349
square
#2D1B53 #531B25 #41531B #1B5349
split-complementary
#2D1B53 #53491B #25531B
monochromatic
#0D0817 #140C25 #2D1B53 #462A81 #5F39AF

Accessibility & contrast

On white

15.07
#2D1B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D1B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B53
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B53#FFFFFF#000000##FFFFFF
##2D1B531.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#232834
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1b53;
/* rgb */ color: rgb(45, 27, 83);
/* oklch */ color: oklch(28.0% 0.097 294.0);
Tailwind
colors: {
  custom: {
    50: '#695884',
    500: '#2d1b53',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b53;
$custom-light: #695884;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b53",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 259.286,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28002,
    "c": 0.09729,
    "h": 294
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#2D1B53
secondary
#728941
accent
#DA4DAD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1B53

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

Preview Lab → · Contrast checker → · Palette generator →

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