#2D1374#2D1374

#2D1374 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.150 H 285.2°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2D1374
RGBrgb(45, 19, 116)
HSLhsl(256, 72%, 26%)
HSVhsv(256, 84%, 45%)
CMYKcmyk(61.2%, 83.6%, 0%, 54.5%)
CIE-LABlab(16.91, 38.56, -50.36)
CIE-LCHlch(16.91, 63.43, 307.44°)
OKLaboklab(30.13% 0.0395 -0.1451)
OKLCHoklch(30.13% 0.15 285.2)
XYZxyz(4.4665, 2.2843, 16.7252)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1374 #5A7413
analogous
#132A74 #2D1374 #5E1374
triadic
#2D1374 #742D13 #13742D
tetradic
#2D1374 #74132A #5A7413 #13745E
square
#2D1374 #74132A #5A7413 #13745E
split-complementary
#2D1374 #745E13 #2A7413
monochromatic
#0A041A #190A3F #2D1374 #411CA9 #5726DB

Accessibility & contrast

On white

14.41
#2D1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D1374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1374
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1374#FFFFFF#000000##FFFFFF
##2D13741.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#043044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1374;
/* rgb */ color: rgb(45, 19, 116);
/* oklch */ color: oklch(30.1% 0.150 285.2);
Tailwind
colors: {
  custom: {
    50: '#70559d',
    500: '#2d1374',
    950: '#000000',
  },
}
SCSS
$custom: #2d1374;
$custom-light: #70559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1374",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 256.082,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30125,
    "c": 0.1504,
    "h": 285.2
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#2D1374
secondary
#8CAA38
accent
#EF39BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1374

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

Preview Lab → · Contrast checker → · Palette generator →

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