#2E1B61#2E1B61

#2E1B61 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.117 H 289.7°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#2E1B61
RGBrgb(46, 27, 97)
HSLhsl(256, 56%, 24%)
HSVhsv(256, 72%, 38%)
CMYKcmyk(52.6%, 72.2%, 0%, 62%)
CIE-LABlab(16.64, 28.40, -38.38)
CIE-LCHlch(16.64, 47.75, 306.50°)
OKLaboklab(29.37% 0.0394 -0.1101)
OKLCHoklch(29.37% 0.117 289.7)
XYZxyz(3.6757, 2.2276, 11.5432)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B61 #4E611B
analogous
#1B2B61 #2E1B61 #511B61
triadic
#2E1B61 #612E1B #1B612E
tetradic
#2E1B61 #611B2B #4E611B #1B6151
square
#2E1B61 #611B2B #4E611B #1B6151
split-complementary
#2E1B61 #61511B #2B611B
monochromatic
#0B0718 #170E31 #2E1B61 #452891 #5B36C1

Accessibility & contrast

On white

14.53
#2E1B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1B61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B61
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B61#FFFFFF#000000##FFFFFF
##2E1B611.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#1D2C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1b61;
/* rgb */ color: rgb(46, 27, 97);
/* oklch */ color: oklch(29.4% 0.117 289.7);
Tailwind
colors: {
  custom: {
    50: '#6c598f',
    500: '#2e1b61',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b61;
$custom-light: #6c598f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b61",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 256.286,
    "s": 56.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29371,
    "c": 0.1169,
    "h": 289.7
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#2E1B61
secondary
#7F9741
accent
#E048B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1B61

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

Preview Lab → · Contrast checker → · Palette generator →

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