#2D1454#2D1454

#2D1454 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.109 H 296.1°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2D1454
RGBrgb(45, 20, 84)
HSLhsl(263, 62%, 20%)
HSVhsv(263, 76%, 33%)
CMYKcmyk(46.4%, 76.2%, 0%, 67.1%)
CIE-LABlab(13.82, 28.30, -34.27)
CIE-LCHlch(13.82, 44.44, 309.55°)
OKLaboklab(26.96% 0.0481 -0.098)
OKLCHoklch(26.96% 0.109 296.1)
XYZxyz(2.9322, 1.6982, 8.5591)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1454 #3B5414
analogous
#141B54 #2D1454 #4D1454
triadic
#2D1454 #542D14 #14542D
tetradic
#2D1454 #54141B #3B5414 #14544D
square
#2D1454 #54141B #3B5414 #14544D
split-complementary
#2D1454 #544D14 #1B5414
monochromatic
#0D0619 #130823 #2D1454 #472085 #622CB7

Accessibility & contrast

On white

15.68
#2D1454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D1454 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1454
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1454#FFFFFF#000000##FFFFFF
##2D14541.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#232432
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d1454;
/* rgb */ color: rgb(45, 20, 84);
/* oklch */ color: oklch(27.0% 0.109 296.1);
Tailwind
colors: {
  custom: {
    50: '#6a5485',
    500: '#2d1454',
    950: '#000000',
  },
}
SCSS
$custom: #2d1454;
$custom-light: #6a5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1454",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 263.438,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26955,
    "c": 0.10913,
    "h": 296.1
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#2D1454
secondary
#6B8C38
accent
#E543A6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2D1454

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

Preview Lab → · Contrast checker → · Palette generator →

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