#2E1B63#2E1B63

#2E1B63 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.120 H 289.0°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2E1B63
RGBrgb(46, 27, 99)
HSLhsl(256, 57%, 25%)
HSVhsv(256, 73%, 39%)
CMYKcmyk(53.5%, 72.7%, 0%, 61.2%)
CIE-LABlab(16.82, 29.04, -39.41)
CIE-LCHlch(16.82, 48.95, 306.39°)
OKLaboklab(29.56% 0.039 -0.1131)
OKLCHoklch(29.56% 0.12 289)
XYZxyz(3.7701, 2.2654, 12.0406)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B63 #50631B
analogous
#1B2C63 #2E1B63 #521B63
triadic
#2E1B63 #632E1B #1B632E
tetradic
#2E1B63 #631B2C #50631B #1B6352
square
#2E1B63 #631B2C #50631B #1B6352
split-complementary
#2E1B63 #63521B #2C631B
monochromatic
#0B0718 #180E33 #2E1B63 #442893 #5B35C3

Accessibility & contrast

On white

14.45
#2E1B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B63
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B63#FFFFFF#000000##FFFFFF
##2E1B631.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#1B2D3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1b63;
/* rgb */ color: rgb(46, 27, 99);
/* oklch */ color: oklch(29.6% 0.120 289.0);
Tailwind
colors: {
  custom: {
    50: '#6d5990',
    500: '#2e1b63',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b63;
$custom-light: #6d5990;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b63",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 255.833,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.2956,
    "c": 0.11962,
    "h": 289
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#2E1B63
secondary
#819841
accent
#E047B8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2E1B63

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

Preview Lab → · Contrast checker → · Palette generator →

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