#2E1E6F#2E1E6F

#2E1E6F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.132 H 284.8°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2E1E6F
RGBrgb(46, 30, 111)
HSLhsl(252, 57%, 28%)
HSVhsv(252, 73%, 44%)
CMYKcmyk(58.6%, 73%, 0%, 56.5%)
CIE-LABlab(18.61, 31.14, -44.33)
CIE-LCHlch(18.61, 54.17, 305.09°)
OKLaboklab(31.19% 0.0338 -0.1275)
OKLCHoklch(31.19% 0.132 284.8)
XYZxyz(4.4594, 2.6568, 15.3137)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E6F #5F6F1E
analogous
#1E366F #2E1E6F #571E6F
triadic
#2E1E6F #6F2E1E #1E6F2E
tetradic
#2E1E6F #6F1E36 #5F6F1E #1E6F57
square
#2E1E6F #6F1E36 #5F6F1E #1E6F57
split-complementary
#2E1E6F #6F571E #366F1E
monochromatic
#0A0718 #1A113F #2E1E6F #422B9F #593DCB

Accessibility & contrast

On white

13.71
#2E1E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1E6F
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E6F#FFFFFF#000000##FFFFFF
##2E1E6F1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#0F3344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1e6f;
/* rgb */ color: rgb(46, 30, 111);
/* oklch */ color: oklch(31.2% 0.132 284.8);
Tailwind
colors: {
  custom: {
    50: '#6f5b99',
    500: '#2e1e6f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e6f;
$custom-light: #6f5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e6f",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 111
  },
  "hsl": {
    "h": 251.852,
    "s": 57.447,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3119,
    "c": 0.13192,
    "h": 284.8
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#2E1E6F
secondary
#91A346
accent
#E147C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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