#2E1B70#2E1B70

#2E1B70 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.137 H 285.4°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1B70
RGBrgb(46, 27, 112)
HSLhsl(253, 61%, 27%)
HSVhsv(253, 76%, 44%)
CMYKcmyk(58.9%, 75.9%, 0%, 56.1%)
CIE-LABlab(18.07, 33.24, -45.86)
CIE-LCHlch(18.07, 56.64, 305.93°)
OKLaboklab(30.84% 0.0363 -0.132)
OKLCHoklch(30.84% 0.137 285.4)
XYZxyz(4.4424, 2.5343, 15.5812)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B70 #5D701B
analogous
#1B3270 #2E1B70 #591B70
triadic
#2E1B70 #702E1B #1B702E
tetradic
#2E1B70 #701B32 #5D701B #1B7059
square
#2E1B70 #701B32 #5D701B #1B7059
split-complementary
#2E1B70 #70591B #32701B
monochromatic
#0A0619 #1A0F3F #2E1B70 #4227A1 #5937CF

Accessibility & contrast

On white

13.93
#2E1B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B70
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B70#FFFFFF#000000##FFFFFF
##2E1B701.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#0E3243
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1b70;
/* rgb */ color: rgb(46, 27, 112);
/* oklch */ color: oklch(30.8% 0.137 285.4);
Tailwind
colors: {
  custom: {
    50: '#6f599a',
    500: '#2e1b70',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b70;
$custom-light: #6f599a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b70",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 253.412,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30836,
    "c": 0.1369,
    "h": 285.4
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#2E1B70
secondary
#8FA542
accent
#E444C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B70

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

Preview Lab → · Contrast checker → · Palette generator →

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