#2E1673#2E1673

#2E1673 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.146 H 285.7°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#2E1673
RGBrgb(46, 22, 115)
HSLhsl(255, 68%, 27%)
HSVhsv(255, 81%, 45%)
CMYKcmyk(60%, 80.9%, 0%, 54.9%)
CIE-LABlab(17.42, 36.91, -48.87)
CIE-LCHlch(17.42, 61.24, 307.06°)
OKLaboklab(30.47% 0.0394 -0.1408)
OKLCHoklch(30.47% 0.146 285.7)
XYZxyz(4.5072, 2.3922, 16.4406)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1673 #5B7316
analogous
#162D73 #2E1673 #5D1673
triadic
#2E1673 #732E16 #16732E
tetradic
#2E1673 #73162D #5B7316 #16735D
square
#2E1673 #73162D #5B7316 #16735D
split-complementary
#2E1673 #735D16 #2D7316
monochromatic
#0A051A #190C40 #2E1673 #4320A6 #592DD7

Accessibility & contrast

On white

14.20
#2E1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1673
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1673#FFFFFF#000000##FFFFFF
##2E16731.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1673;
/* rgb */ color: rgb(46, 22, 115);
/* oklch */ color: oklch(30.5% 0.146 285.7);
Tailwind
colors: {
  custom: {
    50: '#70579c',
    500: '#2e1673',
    950: '#000000',
  },
}
SCSS
$custom: #2e1673;
$custom-light: #70579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1673",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 255.484,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30473,
    "c": 0.14619,
    "h": 285.7
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#2E1673
secondary
#8DA93C
accent
#EB3DBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1673

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

Preview Lab → · Contrast checker → · Palette generator →

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