#2E1F74#2E1F74

#2E1F74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.137 H 283.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2E1F74
RGBrgb(46, 31, 116)
HSLhsl(251, 58%, 29%)
HSVhsv(251, 73%, 45%)
CMYKcmyk(60.3%, 73.3%, 0%, 54.5%)
CIE-LABlab(19.31, 32.19, -46.41)
CIE-LCHlch(19.31, 56.48, 304.74°)
OKLaboklab(31.84% 0.0319 -0.1336)
OKLCHoklch(31.84% 0.137 283.4)
XYZxyz(4.7681, 2.8215, 16.8130)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F74 #65741F
analogous
#1F3B74 #2E1F74 #591F74
triadic
#2E1F74 #742E1F #1F742E
tetradic
#2E1F74 #741F3B #65741F #1F7459
square
#2E1F74 #741F3B #65741F #1F7459
split-complementary
#2E1F74 #74591F #3B741F
monochromatic
#0A0618 #1B1244 #2E1F74 #412CA4 #5A41CC

Accessibility & contrast

On white

13.42
#2E1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F74
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F74#FFFFFF#000000##FFFFFF
##2E1F741.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#073647
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1f74;
/* rgb */ color: rgb(46, 31, 116);
/* oklch */ color: oklch(31.8% 0.137 283.4);
Tailwind
colors: {
  custom: {
    50: '#705c9d',
    500: '#2e1f74',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f74;
$custom-light: #705c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f74",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 250.588,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31839,
    "c": 0.13738,
    "h": 283.4
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#2E1F74
secondary
#97A847
accent
#E147C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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