#2E205E#2E205E

#2E205E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.105 H 288.8°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2E205E
RGBrgb(46, 32, 94)
HSLhsl(254, 49%, 25%)
HSVhsv(254, 66%, 37%)
CMYKcmyk(51.1%, 66%, 0%, 63.1%)
CIE-LABlab(17.56, 24.23, -34.89)
CIE-LCHlch(17.56, 42.48, 304.77°)
OKLaboklab(29.96% 0.034 -0.0998)
OKLCHoklch(29.96% 0.105 288.8)
XYZxyz(3.6630, 2.4219, 10.8620)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E205E #505E20
analogous
#20315E #2E205E #4D205E
triadic
#2E205E #5E2E20 #205E2E
tetradic
#2E205E #5E2031 #505E20 #205E4D
square
#2E205E #5E2031 #505E20 #205E4D
split-complementary
#2E205E #5E4D20 #315E20
monochromatic
#0B0817 #181030 #2E205E #44308C #5B3FB9

Accessibility & contrast

On white

14.15
#2E205E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E205E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E205E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E205E#FFFFFF#000000##FFFFFF
##2E205E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#1E2E3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e205e;
/* rgb */ color: rgb(46, 32, 94);
/* oklch */ color: oklch(30.0% 0.105 288.8);
Tailwind
colors: {
  custom: {
    50: '#6b5c8c',
    500: '#2e205e',
    950: '#000000',
  },
}
SCSS
$custom: #2e205e;
$custom-light: #6b5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e205e",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 94
  },
  "hsl": {
    "h": 253.548,
    "s": 49.206,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29957,
    "c": 0.10542,
    "h": 288.8
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#2E205E
secondary
#819247
accent
#D94FBA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E205E

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

Preview Lab → · Contrast checker → · Palette generator →

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