#2E1E7C#2E1E7C

#2E1E7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.149 H 282.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2E1E7C
RGBrgb(46, 30, 124)
HSLhsl(250, 61%, 30%)
HSVhsv(250, 76%, 49%)
CMYKcmyk(62.9%, 75.8%, 0%, 51.4%)
CIE-LABlab(19.90, 35.41, -50.57)
CIE-LCHlch(19.90, 61.73, 305.00°)
OKLaboklab(32.5% 0.031 -0.1458)
OKLCHoklch(32.5% 0.149 282)
XYZxyz(5.2279, 2.9643, 19.3615)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E7C #6C7C1E
analogous
#1E3D7C #2E1E7C #5D1E7C
triadic
#2E1E7C #7C2E1E #1E7C2E
tetradic
#2E1E7C #7C1E3D #6C7C1E #1E7C5D
square
#2E1E7C #7C1E3D #6C7C1E #1E7C5D
split-complementary
#2E1E7C #7C5D1E #3D7C1E
monochromatic
#090619 #1C124B #2E1E7C #402AAD #5B43D1

Accessibility & contrast

On white

13.18
#2E1E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E7C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E7C#FFFFFF#000000##FFFFFF
##2E1E7C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1e7c;
/* rgb */ color: rgb(46, 30, 124);
/* oklch */ color: oklch(32.5% 0.149 282.0);
Tailwind
colors: {
  custom: {
    50: '#715ca3',
    500: '#2e1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e7c;
$custom-light: #715ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e7c",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 250.213,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32499,
    "c": 0.14904,
    "h": 282
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#2E1E7C
secondary
#9EAF46
accent
#E444C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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