#2D1672#2D1672

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

Color values

HEX#2D1672
RGBrgb(45, 22, 114)
HSLhsl(255, 68%, 27%)
HSVhsv(255, 81%, 45%)
CMYKcmyk(60.5%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.21, 36.46, -48.58)
CIE-LCHlch(17.21, 60.75, 306.89°)
OKLaboklab(30.26% 0.0381 -0.1399)
OKLCHoklch(30.26% 0.145 285.2)
XYZxyz(4.4054, 2.3463, 16.1371)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1672 #5B7216
analogous
#162D72 #2D1672 #5B1672
triadic
#2D1672 #722D16 #16722D
tetradic
#2D1672 #72162D #5B7216 #16725B
square
#2D1672 #72162D #5B7216 #16725B
split-complementary
#2D1672 #725B16 #2D7216
monochromatic
#0A051A #190C3F #2D1672 #4120A5 #572CD6

Accessibility & contrast

On white

14.29
#2D1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2D1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1672
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1672#FFFFFF#000000##FFFFFF
##2D16721.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#073143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1672;
/* rgb */ color: rgb(45, 22, 114);
/* oklch */ color: oklch(30.3% 0.145 285.2);
Tailwind
colors: {
  custom: {
    50: '#6f579c',
    500: '#2d1672',
    950: '#000000',
  },
}
SCSS
$custom: #2d1672;
$custom-light: #6f579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1672",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 255,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30265,
    "c": 0.14505,
    "h": 285.2
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#2D1672
secondary
#8DA83C
accent
#EB3DBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1672

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

Preview Lab → · Contrast checker → · Palette generator →

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