#2D1B85#2D1B85

#2D1B85 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.164 H 280.3°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2D1B85
RGBrgb(45, 27, 133)
HSLhsl(250, 66%, 31%)
HSVhsv(250, 80%, 52%)
CMYKcmyk(66.2%, 79.7%, 0%, 47.8%)
CIE-LABlab(20.18, 39.82, -55.81)
CIE-LCHlch(20.18, 68.56, 305.51°)
OKLaboklab(32.96% 0.0291 -0.1611)
OKLCHoklch(32.96% 0.164 280.3)
XYZxyz(5.7064, 3.0348, 22.4708)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B85 #73851B
analogous
#1B3E85 #2D1B85 #621B85
triadic
#2D1B85 #852D1B #1B852D
tetradic
#2D1B85 #851B3E #73851B #1B8562
square
#2D1B85 #851B3E #73851B #1B8562
split-complementary
#2D1B85 #85621B #3E851B
monochromatic
#0B061F #1C1152 #2D1B85 #3E25B8 #5B42D9

Accessibility & contrast

On white

13.07
#2D1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B85
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B85#FFFFFF#000000##FFFFFF
##2D1B851.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1b85;
/* rgb */ color: rgb(45, 27, 133);
/* oklch */ color: oklch(33.0% 0.164 280.3);
Tailwind
colors: {
  custom: {
    50: '#735aaa',
    500: '#2d1b85',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b85;
$custom-light: #735aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b85",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 250.189,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32961,
    "c": 0.1637,
    "h": 280.3
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#2D1B85
secondary
#A4B844
accent
#E93FCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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