#2E1D61#2E1D61

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

Color values

HEX#2E1D61
RGBrgb(46, 29, 97)
HSLhsl(255, 54%, 25%)
HSVhsv(255, 70%, 38%)
CMYKcmyk(52.6%, 70.1%, 0%, 62%)
CIE-LABlab(17.10, 27.15, -37.64)
CIE-LCHlch(17.10, 46.41, 305.81°)
OKLaboklab(29.7% 0.0372 -0.1079)
OKLCHoklch(29.7% 0.114 289)
XYZxyz(3.7231, 2.3225, 11.5591)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D61 #50611D
analogous
#1D2E61 #2E1D61 #501D61
triadic
#2E1D61 #612E1D #1D612E
tetradic
#2E1D61 #611D2E #50611D #1D6150
square
#2E1D61 #611D2E #50611D #1D6150
split-complementary
#2E1D61 #61501D #2E611D
monochromatic
#0B0718 #180F32 #2E1D61 #442B90 #5B39BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1D61#FFFFFF#000000##FFFFFF
##2E1D611.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)
#002B63
Deuteranopia (green-blind)
#002860
Tritanopia (blue-blind)
#1D2E3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1d61;
/* rgb */ color: rgb(46, 29, 97);
/* oklch */ color: oklch(29.7% 0.114 289.0);
Tailwind
colors: {
  custom: {
    50: '#6c5a8f',
    500: '#2e1d61',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d61;
$custom-light: #6c5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d61",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 97
  },
  "hsl": {
    "h": 255,
    "s": 53.968,
    "l": 24.706
  },
  "oklch": {
    "l": 0.297,
    "c": 0.11411,
    "h": 289
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#2E1D61
secondary
#819644
accent
#DD4AB9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E1D61

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

Preview Lab → · Contrast checker → · Palette generator →

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