#2D1174#2D1174

#2D1174 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.152 H 285.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2D1174
RGBrgb(45, 17, 116)
HSLhsl(257, 74%, 26%)
HSVhsv(257, 85%, 45%)
CMYKcmyk(61.2%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.60, 39.48, -50.88)
CIE-LCHlch(16.60, 64.40, 307.81°)
OKLaboklab(29.91% 0.0408 -0.1466)
OKLCHoklch(29.91% 0.152 285.5)
XYZxyz(4.4341, 2.2195, 16.7144)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1174 #587411
analogous
#112674 #2D1174 #5E1174
triadic
#2D1174 #742D11 #11742D
tetradic
#2D1174 #741126 #587411 #11745E
square
#2D1174 #741126 #587411 #11745E
split-complementary
#2D1174 #745E11 #267411
monochromatic
#0A041B #18093F #2D1174 #4219A9 #5721DE

Accessibility & contrast

On white

14.54
#2D1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1174
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1174#FFFFFF#000000##FFFFFF
##2D11741.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#042F44
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1174;
/* rgb */ color: rgb(45, 17, 116);
/* oklch */ color: oklch(29.9% 0.152 285.5);
Tailwind
colors: {
  custom: {
    50: '#70549d',
    500: '#2d1174',
    950: '#000000',
  },
}
SCSS
$custom: #2d1174;
$custom-light: #70549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1174",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 256.97,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29908,
    "c": 0.15216,
    "h": 285.5
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#2D1174
secondary
#8AAB36
accent
#F137BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1174

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

Preview Lab → · Contrast checker → · Palette generator →

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