#2E1B74#2E1B74

#2E1B74 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.142 H 284.4°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2E1B74
RGBrgb(46, 27, 116)
HSLhsl(253, 62%, 28%)
HSVhsv(253, 77%, 45%)
CMYKcmyk(60.3%, 76.7%, 0%, 54.5%)
CIE-LABlab(18.48, 34.53, -47.79)
CIE-LCHlch(18.48, 58.95, 305.85°)
OKLaboklab(31.24% 0.0353 -0.1376)
OKLCHoklch(31.24% 0.142 284.4)
XYZxyz(4.6701, 2.6254, 16.7803)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B74 #61741B
analogous
#1B3474 #2E1B74 #5A1B74
triadic
#2E1B74 #742E1B #1B742E
tetradic
#2E1B74 #741B34 #61741B #1B745A
square
#2E1B74 #741B34 #61741B #1B745A
split-complementary
#2E1B74 #745A1B #34741B
monochromatic
#0A0619 #1A0F42 #2E1B74 #4227A6 #5939D1

Accessibility & contrast

On white

13.77
#2E1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B74
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B74#FFFFFF#000000##FFFFFF
##2E1B741.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#073446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1b74;
/* rgb */ color: rgb(46, 27, 116);
/* oklch */ color: oklch(31.2% 0.142 284.4);
Tailwind
colors: {
  custom: {
    50: '#705a9d',
    500: '#2e1b74',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b74;
$custom-light: #705a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b74",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 252.809,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31244,
    "c": 0.14208,
    "h": 284.4
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#2E1B74
secondary
#93A942
accent
#E542C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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