#2E205B#2E205B

#2E205B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.7% C 0.101 H 289.7°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2E205B
RGBrgb(46, 32, 91)
HSLhsl(254, 48%, 24%)
HSVhsv(254, 65%, 36%)
CMYKcmyk(49.5%, 64.8%, 0%, 64.3%)
CIE-LABlab(17.32, 23.23, -33.29)
CIE-LCHlch(17.32, 40.60, 304.91°)
OKLaboklab(29.7% 0.0341 -0.0951)
OKLCHoklch(29.7% 0.101 289.7)
XYZxyz(3.5310, 2.3691, 10.1667)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E205B #4D5B20
analogous
#20305B #2E205B #4C205B
triadic
#2E205B #5B2E20 #205B2E
tetradic
#2E205B #5B2030 #4D5B20 #205B4C
square
#2E205B #5B2030 #4D5B20 #205B4C
split-complementary
#2E205B #5B4C20 #305B20
monochromatic
#0B0817 #17102E #2E205B #453088 #5C40B6

Accessibility & contrast

On white

14.25
#2E205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E205B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E205B
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E205B#FFFFFF#000000##FFFFFF
##2E205B1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#202D3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e205b;
/* rgb */ color: rgb(46, 32, 91);
/* oklch */ color: oklch(29.7% 0.101 289.7);
Tailwind
colors: {
  custom: {
    50: '#6b5c8a',
    500: '#2e205b',
    950: '#000000',
  },
}
SCSS
$custom: #2e205b;
$custom-light: #6b5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e205b",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 254.237,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.297,
    "c": 0.10104,
    "h": 289.7
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#2E205B
secondary
#7E8F47
accent
#D850B7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E205B

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

Preview Lab → · Contrast checker → · Palette generator →

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