#2D1157#2D1157

#2D1157 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.117 H 295.6°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2D1157
RGBrgb(45, 17, 87)
HSLhsl(264, 67%, 20%)
HSVhsv(264, 80%, 34%)
CMYKcmyk(48.3%, 80.5%, 0%, 65.9%)
CIE-LABlab(13.51, 30.85, -36.80)
CIE-LCHlch(13.51, 48.02, 309.98°)
OKLaboklab(26.83% 0.0505 -0.1054)
OKLCHoklch(26.83% 0.117 295.6)
XYZxyz(3.0025, 1.6468, 9.1747)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1157 #3B5711
analogous
#111857 #2D1157 #501157
triadic
#2D1157 #572D11 #11572D
tetradic
#2D1157 #571118 #3B5711 #115750
square
#2D1157 #571118 #3B5711 #115750
split-complementary
#2D1157 #575011 #185711
monochromatic
#0D051A #130724 #2D1157 #471B8A #6225BD

Accessibility & contrast

On white

15.80
#2D1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2D1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1157
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1157#FFFFFF#000000##FFFFFF
##2D11571.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#212433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d1157;
/* rgb */ color: rgb(45, 17, 87);
/* oklch */ color: oklch(26.8% 0.117 295.6);
Tailwind
colors: {
  custom: {
    50: '#6b5287',
    500: '#2d1157',
    950: '#000000',
  },
}
SCSS
$custom: #2d1157;
$custom-light: #6b5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1157",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 264,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26828,
    "c": 0.11687,
    "h": 295.6
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#2D1157
secondary
#6B9034
accent
#EA3EA5
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1157

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

Preview Lab → · Contrast checker → · Palette generator →

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