#2D1B80#2D1B80

#2D1B80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.157 H 281.2°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2D1B80
RGBrgb(45, 27, 128)
HSLhsl(251, 65%, 30%)
HSVhsv(251, 79%, 50%)
CMYKcmyk(64.8%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.64, 38.24, -53.55)
CIE-LCHlch(19.64, 65.80, 305.53°)
OKLaboklab(32.42% 0.0305 -0.1545)
OKLCHoklch(32.42% 0.157 281.2)
XYZxyz(5.3692, 2.8999, 20.6947)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B80 #6E801B
analogous
#1B3B80 #2D1B80 #5F1B80
triadic
#2D1B80 #802D1B #1B802D
tetradic
#2D1B80 #801B3B #6E801B #1B805F
square
#2D1B80 #801B3B #6E801B #1B805F
split-complementary
#2D1B80 #805F1B #3B801B
monochromatic
#09061B #1B104D #2D1B80 #3F26B3 #5A3FD6

Accessibility & contrast

On white

13.29
#2D1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B80
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B80#FFFFFF#000000##FFFFFF
##2D1B801.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1b80;
/* rgb */ color: rgb(45, 27, 128);
/* oklch */ color: oklch(32.4% 0.157 281.2);
Tailwind
colors: {
  custom: {
    50: '#725aa6',
    500: '#2d1b80',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b80;
$custom-light: #725aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b80",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 250.693,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.15748,
    "h": 281.2
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#2D1B80
secondary
#A0B443
accent
#E840CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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