#2E1775#2E1775

#2E1775 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.148 H 285.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2E1775
RGBrgb(46, 23, 117)
HSLhsl(255, 67%, 27%)
HSVhsv(255, 80%, 46%)
CMYKcmyk(60.7%, 80.3%, 0%, 54.1%)
CIE-LABlab(17.82, 37.01, -49.51)
CIE-LCHlch(17.82, 61.82, 306.78°)
OKLaboklab(30.81% 0.0381 -0.1426)
OKLCHoklch(30.81% 0.148 285)
XYZxyz(4.6430, 2.4777, 17.0598)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1775 #5E7517
analogous
#172F75 #2E1775 #5D1775
triadic
#2E1775 #752E17 #17752E
tetradic
#2E1775 #75172F #5E7517 #17755D
square
#2E1775 #75172F #5E7517 #17755D
split-complementary
#2E1775 #755D17 #2F7517
monochromatic
#0A051A #1A0D42 #2E1775 #4221A8 #5930D6

Accessibility & contrast

On white

14.04
#2E1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1775
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1775#FFFFFF#000000##FFFFFF
##2E17751.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#063245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1775;
/* rgb */ color: rgb(46, 23, 117);
/* oklch */ color: oklch(30.8% 0.148 285.0);
Tailwind
colors: {
  custom: {
    50: '#70579e',
    500: '#2e1775',
    950: '#000000',
  },
}
SCSS
$custom: #2e1775;
$custom-light: #70579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1775",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 254.681,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30812,
    "c": 0.14765,
    "h": 285
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#2E1775
secondary
#90AA3D
accent
#EA3EC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1775

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

Preview Lab → · Contrast checker → · Palette generator →

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