#2E1672#2E1672

#2E1672 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.145 H 285.9°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2E1672
RGBrgb(46, 22, 114)
HSLhsl(256, 68%, 27%)
HSVhsv(256, 81%, 45%)
CMYKcmyk(59.6%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.32, 36.60, -48.40)
CIE-LCHlch(17.32, 60.68, 307.10°)
OKLaboklab(30.37% 0.0398 -0.1394)
OKLCHoklch(30.37% 0.145 285.9)
XYZxyz(4.4500, 2.3693, 16.1392)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1672 #5A7216
analogous
#162C72 #2E1672 #5C1672
triadic
#2E1672 #722E16 #16722E
tetradic
#2E1672 #72162C #5A7216 #16725C
square
#2E1672 #72162C #5A7216 #16725C
split-complementary
#2E1672 #725C16 #2C7216
monochromatic
#0A051A #190C3F #2E1672 #4320A5 #592CD6

Accessibility & contrast

On white

14.25
#2E1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1672
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1672#FFFFFF#000000##FFFFFF
##2E16721.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#0C3143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1672;
/* rgb */ color: rgb(46, 22, 114);
/* oklch */ color: oklch(30.4% 0.145 285.9);
Tailwind
colors: {
  custom: {
    50: '#70579c',
    500: '#2e1672',
    950: '#000000',
  },
}
SCSS
$custom: #2e1672;
$custom-light: #70579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1672",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 255.652,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30366,
    "c": 0.14495,
    "h": 285.9
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#2E1672
secondary
#8CA83C
accent
#EB3DBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1672

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

Preview Lab → · Contrast checker → · Palette generator →

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