#2E1773#2E1773

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

Color values

HEX#2E1773
RGBrgb(46, 23, 115)
HSLhsl(255, 67%, 27%)
HSVhsv(255, 80%, 45%)
CMYKcmyk(60%, 80%, 0%, 54.9%)
CIE-LABlab(17.60, 36.39, -48.58)
CIE-LCHlch(17.60, 60.69, 306.84°)
OKLaboklab(30.6% 0.0387 -0.1399)
OKLCHoklch(30.6% 0.145 285.5)
XYZxyz(4.5267, 2.4312, 16.4471)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1773 #5C7317
analogous
#172E73 #2E1773 #5C1773
triadic
#2E1773 #732E17 #17732E
tetradic
#2E1773 #73172E #5C7317 #17735C
square
#2E1773 #73172E #5C7317 #17735C
split-complementary
#2E1773 #735C17 #2E7317
monochromatic
#0A051A #1A0D40 #2E1773 #4221A6 #592FD5

Accessibility & contrast

On white

14.13
#2E1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1773
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1773#FFFFFF#000000##FFFFFF
##2E17731.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#0A3144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1773;
/* rgb */ color: rgb(46, 23, 115);
/* oklch */ color: oklch(30.6% 0.145 285.5);
Tailwind
colors: {
  custom: {
    50: '#70579c',
    500: '#2e1773',
    950: '#000000',
  },
}
SCSS
$custom: #2e1773;
$custom-light: #70579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1773",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30599,
    "c": 0.14516,
    "h": 285.5
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1773

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

Preview Lab → · Contrast checker → · Palette generator →

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