#2E1B66#2E1B66

#2E1B66 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.124 H 288.1°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2E1B66
RGBrgb(46, 27, 102)
HSLhsl(255, 58%, 25%)
HSVhsv(255, 74%, 40%)
CMYKcmyk(54.9%, 73.5%, 0%, 60%)
CIE-LABlab(17.10, 30.01, -40.93)
CIE-LCHlch(17.10, 50.75, 306.25°)
OKLaboklab(29.85% 0.0385 -0.1175)
OKLCHoklch(29.85% 0.124 288.1)
XYZxyz(3.9162, 2.3238, 12.8100)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B66 #53661B
analogous
#1B2D66 #2E1B66 #531B66
triadic
#2E1B66 #662E1B #1B662E
tetradic
#2E1B66 #661B2D #53661B #1B6653
square
#2E1B66 #661B2D #53661B #1B6653
split-complementary
#2E1B66 #66531B #2D661B
monochromatic
#0B0618 #180E36 #2E1B66 #442896 #5A35C7

Accessibility & contrast

On white

14.34
#2E1B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B66
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B66#FFFFFF#000000##FFFFFF
##2E1B661.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#192E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1b66;
/* rgb */ color: rgb(46, 27, 102);
/* oklch */ color: oklch(29.8% 0.124 288.1);
Tailwind
colors: {
  custom: {
    50: '#6d5992',
    500: '#2e1b66',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b66;
$custom-light: #6d5992;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b66",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 255.2,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29847,
    "c": 0.12367,
    "h": 288.1
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#2E1B66
secondary
#859B41
accent
#E146BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2E1B66

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

Preview Lab → · Contrast checker → · Palette generator →

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