#2D1B60#2D1B60

#2D1B60 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.116 H 289.2°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2D1B60
RGBrgb(45, 27, 96)
HSLhsl(256, 56%, 24%)
HSVhsv(256, 72%, 38%)
CMYKcmyk(53.1%, 71.9%, 0%, 62.4%)
CIE-LABlab(16.44, 27.87, -38.06)
CIE-LCHlch(16.44, 47.17, 306.22°)
OKLaboklab(29.17% 0.038 -0.1091)
OKLCHoklch(29.17% 0.116 289.2)
XYZxyz(3.5848, 2.1861, 11.2971)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B60 #4E601B
analogous
#1B2C60 #2D1B60 #501B60
triadic
#2D1B60 #602D1B #1B602D
tetradic
#2D1B60 #601B2C #4E601B #1B6050
square
#2D1B60 #601B2C #4E601B #1B6050
split-complementary
#2D1B60 #60501B #2C601B
monochromatic
#0B0718 #170E30 #2D1B60 #432890 #5A36C0

Accessibility & contrast

On white

14.61
#2D1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B60
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B60#FFFFFF#000000##FFFFFF
##2D1B601.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#1B2C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1b60;
/* rgb */ color: rgb(45, 27, 96);
/* oklch */ color: oklch(29.2% 0.116 289.2);
Tailwind
colors: {
  custom: {
    50: '#6c598e',
    500: '#2d1b60',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b60;
$custom-light: #6c598e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b60",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 255.652,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2917,
    "c": 0.11556,
    "h": 289.2
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#2D1B60
secondary
#809641
accent
#DF48B8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D1B60

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

Preview Lab → · Contrast checker → · Palette generator →

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