#2D1878#2D1878

#2D1878 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.151 H 283.4°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2D1878
RGBrgb(45, 24, 120)
HSLhsl(253, 67%, 28%)
HSVhsv(253, 80%, 47%)
CMYKcmyk(62.5%, 80%, 0%, 52.9%)
CIE-LABlab(18.22, 37.29, -50.79)
CIE-LCHlch(18.22, 63.01, 306.29°)
OKLaboklab(31.17% 0.0349 -0.1464)
OKLCHoklch(31.17% 0.151 283.4)
XYZxyz(4.7979, 2.5669, 18.0083)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1878 #637818
analogous
#183378 #2D1878 #5D1878
triadic
#2D1878 #782D18 #18782D
tetradic
#2D1878 #781833 #637818 #18785D
square
#2D1878 #781833 #637818 #18785D
split-complementary
#2D1878 #785D18 #337818
monochromatic
#0A051A #1A0E45 #2D1878 #4022AB #5834D6

Accessibility & contrast

On white

13.88
#2D1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1878
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1878#FFFFFF#000000##FFFFFF
##2D18781.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1878;
/* rgb */ color: rgb(45, 24, 120);
/* oklch */ color: oklch(31.2% 0.151 283.4);
Tailwind
colors: {
  custom: {
    50: '#7058a0',
    500: '#2d1878',
    950: '#000000',
  },
}
SCSS
$custom: #2d1878;
$custom-light: #7058a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1878",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 253.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31165,
    "c": 0.15051,
    "h": 283.4
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#2D1878
secondary
#95AD3F
accent
#EA3EC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2D1878

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

Preview Lab → · Contrast checker → · Palette generator →

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