#2E1B65#2E1B65

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

Color values

HEX#2E1B65
RGBrgb(46, 27, 101)
HSLhsl(255, 58%, 25%)
HSVhsv(255, 73%, 40%)
CMYKcmyk(54.5%, 73.3%, 0%, 60.4%)
CIE-LABlab(17.01, 29.69, -40.42)
CIE-LCHlch(17.01, 50.15, 306.30°)
OKLaboklab(29.75% 0.0387 -0.116)
OKLCHoklch(29.75% 0.122 288.4)
XYZxyz(3.8669, 2.3041, 12.5504)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B65 #52651B
analogous
#1B2D65 #2E1B65 #531B65
triadic
#2E1B65 #652E1B #1B652E
tetradic
#2E1B65 #651B2D #52651B #1B6553
square
#2E1B65 #651B2D #52651B #1B6553
split-complementary
#2E1B65 #65531B #2D651B
monochromatic
#0B0618 #180E35 #2E1B65 #442895 #5A35C6

Accessibility & contrast

On white

14.38
#2E1B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B65
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B65#FFFFFF#000000##FFFFFF
##2E1B651.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#1A2E3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1b65;
/* rgb */ color: rgb(46, 27, 101);
/* oklch */ color: oklch(29.8% 0.122 288.4);
Tailwind
colors: {
  custom: {
    50: '#6d5992',
    500: '#2e1b65',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b65;
$custom-light: #6d5992;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b65",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 255.405,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29751,
    "c": 0.12232,
    "h": 288.4
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#2E1B65
secondary
#849A41
accent
#E147B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2E1B65

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

Preview Lab → · Contrast checker → · Palette generator →

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