#2D1154#2D1154

#2D1154 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.113 H 297.0°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2D1154
RGBrgb(45, 17, 84)
HSLhsl(265, 66%, 20%)
HSVhsv(265, 80%, 33%)
CMYKcmyk(46.4%, 79.8%, 0%, 67.1%)
CIE-LABlab(13.22, 29.96, -35.24)
CIE-LCHlch(13.22, 46.25, 310.38°)
OKLaboklab(26.53% 0.0513 -0.1008)
OKLCHoklch(26.53% 0.113 297)
XYZxyz(2.8825, 1.5988, 8.5425)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1154 #385411
analogous
#111654 #2D1154 #4F1154
triadic
#2D1154 #542D11 #11542D
tetradic
#2D1154 #541116 #385411 #11544F
square
#2D1154 #541116 #385411 #11544F
split-complementary
#2D1154 #544F11 #165411
monochromatic
#0E0519 #120721 #2D1154 #481B87 #6426BA

Accessibility & contrast

On white

15.91
#2D1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1154
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1154#FFFFFF#000000##FFFFFF
##2D11541.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#232231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1154;
/* rgb */ color: rgb(45, 17, 84);
/* oklch */ color: oklch(26.5% 0.113 297.0);
Tailwind
colors: {
  custom: {
    50: '#6b5285',
    500: '#2d1154',
    950: '#000000',
  },
}
SCSS
$custom: #2d1154;
$custom-light: #6b5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1154",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 265.075,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26534,
    "c": 0.11312,
    "h": 297
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#2D1154
secondary
#688D34
accent
#E93FA2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1154

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

Preview Lab → · Contrast checker → · Palette generator →

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