#2E1B6E#2E1B6E

#2E1B6E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.134 H 285.9°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2E1B6E
RGBrgb(46, 27, 110)
HSLhsl(254, 61%, 27%)
HSVhsv(254, 75%, 43%)
CMYKcmyk(58.2%, 75.5%, 0%, 56.9%)
CIE-LABlab(17.87, 32.59, -44.89)
CIE-LCHlch(17.87, 55.48, 305.98°)
OKLaboklab(30.63% 0.0368 -0.1292)
OKLCHoklch(30.63% 0.134 285.9)
XYZxyz(4.3323, 2.4903, 15.0012)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B6E #5B6E1B
analogous
#1B326E #2E1B6E #581B6E
triadic
#2E1B6E #6E2E1B #1B6E2E
tetradic
#2E1B6E #6E1B32 #5B6E1B #1B6E58
square
#2E1B6E #6E1B32 #5B6E1B #1B6E58
split-complementary
#2E1B6E #6E581B #326E1B
monochromatic
#0A0619 #190F3D #2E1B6E #43279F #5936CE

Accessibility & contrast

On white

14.02
#2E1B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E1B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B6E
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B6E#FFFFFF#000000##FFFFFF
##2E1B6E1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#113142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1b6e;
/* rgb */ color: rgb(46, 27, 110);
/* oklch */ color: oklch(30.6% 0.134 285.9);
Tailwind
colors: {
  custom: {
    50: '#6f5998',
    500: '#2e1b6e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b6e;
$custom-light: #6f5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b6e",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 253.735,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30634,
    "c": 0.13429,
    "h": 285.9
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#2E1B6E
secondary
#8DA342
accent
#E444BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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