#2E1B6F#2E1B6F

#2E1B6F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.136 H 285.6°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1B6F
RGBrgb(46, 27, 111)
HSLhsl(254, 61%, 27%)
HSVhsv(254, 76%, 44%)
CMYKcmyk(58.6%, 75.7%, 0%, 56.5%)
CIE-LABlab(17.97, 32.92, -45.38)
CIE-LCHlch(17.97, 56.06, 305.96°)
OKLaboklab(30.74% 0.0365 -0.1306)
OKLCHoklch(30.74% 0.136 285.6)
XYZxyz(4.3870, 2.5122, 15.2896)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B6F #5C6F1B
analogous
#1B326F #2E1B6F #581B6F
triadic
#2E1B6F #6F2E1B #1B6F2E
tetradic
#2E1B6F #6F1B32 #5C6F1B #1B6F58
square
#2E1B6F #6F1B32 #5C6F1B #1B6F58
split-complementary
#2E1B6F #6F581B #326F1B
monochromatic
#0A0619 #1A0F3E #2E1B6F #4227A0 #5936CE

Accessibility & contrast

On white

13.98
#2E1B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B6F
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B6F#FFFFFF#000000##FFFFFF
##2E1B6F1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#103243
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1b6f;
/* rgb */ color: rgb(46, 27, 111);
/* oklch */ color: oklch(30.7% 0.136 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f5999',
    500: '#2e1b6f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b6f;
$custom-light: #6f5999;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b6f",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 253.571,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30735,
    "c": 0.1356,
    "h": 285.6
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#2E1B6F
secondary
#8EA442
accent
#E444C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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