#2D1678#2D1678

#2D1678 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.152 H 283.7°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2D1678
RGBrgb(45, 22, 120)
HSLhsl(254, 69%, 28%)
HSVhsv(254, 82%, 47%)
CMYKcmyk(62.5%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.86, 38.32, -51.37)
CIE-LCHlch(17.86, 64.09, 306.72°)
OKLaboklab(30.92% 0.0362 -0.1481)
OKLCHoklch(30.92% 0.152 283.7)
XYZxyz(4.7582, 2.4875, 17.9950)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1678 #617816
analogous
#163078 #2D1678 #5E1678
triadic
#2D1678 #782D16 #16782D
tetradic
#2D1678 #781630 #617816 #16785E
square
#2D1678 #781630 #617816 #16785E
split-complementary
#2D1678 #785E16 #307816
monochromatic
#0A051A #1A0D44 #2D1678 #401FAC #572FD9

Accessibility & contrast

On white

14.02
#2D1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1678
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1678#FFFFFF#000000##FFFFFF
##2D16781.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1678;
/* rgb */ color: rgb(45, 22, 120);
/* oklch */ color: oklch(30.9% 0.152 283.7);
Tailwind
colors: {
  custom: {
    50: '#7157a0',
    500: '#2d1678',
    950: '#000000',
  },
}
SCSS
$custom: #2d1678;
$custom-light: #7157a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1678",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 254.082,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30916,
    "c": 0.15246,
    "h": 283.7
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#2D1678
secondary
#93AD3C
accent
#EC3CC3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2D1678

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

Preview Lab → · Contrast checker → · Palette generator →

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