#2E1B67#2E1B67

#2E1B67 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.125 H 287.8°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#2E1B67
RGBrgb(46, 27, 103)
HSLhsl(255, 58%, 25%)
HSVhsv(255, 74%, 40%)
CMYKcmyk(55.3%, 73.8%, 0%, 59.6%)
CIE-LABlab(17.20, 30.33, -41.43)
CIE-LCHlch(17.20, 51.35, 306.21°)
OKLaboklab(29.94% 0.0383 -0.119)
OKLCHoklch(29.94% 0.125 287.8)
XYZxyz(3.9661, 2.3438, 13.0727)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B67 #54671B
analogous
#1B2E67 #2E1B67 #541B67
triadic
#2E1B67 #672E1B #1B672E
tetradic
#2E1B67 #671B2E #54671B #1B6754
square
#2E1B67 #671B2E #54671B #1B6754
split-complementary
#2E1B67 #67541B #2E671B
monochromatic
#0B0618 #180E37 #2E1B67 #442897 #5934C8

Accessibility & contrast

On white

14.30
#2E1B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B67
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B67#FFFFFF#000000##FFFFFF
##2E1B671.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#182F3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1b67;
/* rgb */ color: rgb(46, 27, 103);
/* oklch */ color: oklch(29.9% 0.125 287.8);
Tailwind
colors: {
  custom: {
    50: '#6d5993',
    500: '#2e1b67',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b67;
$custom-light: #6d5993;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b67",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 255,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29944,
    "c": 0.12501,
    "h": 287.8
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#2E1B67
secondary
#869C42
accent
#E246BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1B67

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

Preview Lab → · Contrast checker → · Palette generator →

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