#2E205C#2E205C

#2E205C is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.102 H 289.4°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#2E205C
RGBrgb(46, 32, 92)
HSLhsl(254, 48%, 24%)
HSVhsv(254, 65%, 36%)
CMYKcmyk(50%, 65.2%, 0%, 63.9%)
CIE-LABlab(17.40, 23.56, -33.83)
CIE-LCHlch(17.40, 41.23, 304.86°)
OKLaboklab(29.79% 0.0341 -0.0967)
OKLCHoklch(29.79% 0.103 289.4)
XYZxyz(3.5744, 2.3864, 10.3954)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E205C #4E5C20
analogous
#20305C #2E205C #4C205C
triadic
#2E205C #5C2E20 #205C2E
tetradic
#2E205C #5C2030 #4E5C20 #205C4C
square
#2E205C #5C2030 #4E5C20 #205C4C
split-complementary
#2E205C #5C4C20 #305C20
monochromatic
#0B0817 #17102F #2E205C #453089 #5B40B7

Accessibility & contrast

On white

14.21
#2E205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E205C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E205C#FFFFFF#000000##FFFFFF
##2E205C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#1F2E3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e205c;
/* rgb */ color: rgb(46, 32, 92);
/* oklch */ color: oklch(29.8% 0.102 289.4);
Tailwind
colors: {
  custom: {
    50: '#6b5c8b',
    500: '#2e205c',
    950: '#000000',
  },
}
SCSS
$custom: #2e205c;
$custom-light: #6b5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e205c",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 254,
    "s": 48.387,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29785,
    "c": 0.1025,
    "h": 289.4
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#2E205C
secondary
#7F9047
accent
#D850B8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E205C

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

Preview Lab → · Contrast checker → · Palette generator →

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