#2E1774#2E1774

#2E1774 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.146 H 285.2°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2E1774
RGBrgb(46, 23, 116)
HSLhsl(255, 67%, 27%)
HSVhsv(255, 80%, 45%)
CMYKcmyk(60.3%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.71, 36.70, -49.05)
CIE-LCHlch(17.71, 61.26, 306.81°)
OKLaboklab(30.71% 0.0384 -0.1413)
OKLCHoklch(30.71% 0.146 285.2)
XYZxyz(4.5845, 2.4543, 16.7518)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1774 #5D7417
analogous
#172E74 #2E1774 #5D1774
triadic
#2E1774 #742E17 #17742E
tetradic
#2E1774 #74172E #5D7417 #17745D
square
#2E1774 #74172E #5D7417 #17745D
split-complementary
#2E1774 #745D17 #2E7417
monochromatic
#0A051A #1A0D41 #2E1774 #4221A7 #5930D6

Accessibility & contrast

On white

14.08
#2E1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1774
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1774#FFFFFF#000000##FFFFFF
##2E17741.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#083245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1774;
/* rgb */ color: rgb(46, 23, 116);
/* oklch */ color: oklch(30.7% 0.146 285.2);
Tailwind
colors: {
  custom: {
    50: '#70579d',
    500: '#2e1774',
    950: '#000000',
  },
}
SCSS
$custom: #2e1774;
$custom-light: #70579d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1774",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 254.839,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30706,
    "c": 0.14641,
    "h": 285.2
  },
  "luminance": 0.02455
}

Semantic roles & 50–950 ramp

primary
#2E1774
secondary
#8FA93D
accent
#EA3EBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1774

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

Preview Lab → · Contrast checker → · Palette generator →

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