#2E204F#2E204F

#2E204F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.7% C 0.083 H 294.3°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2E204F
RGBrgb(46, 32, 79)
HSLhsl(258, 42%, 22%)
HSVhsv(258, 59%, 31%)
CMYKcmyk(41.8%, 59.5%, 0%, 69%)
CIE-LABlab(16.40, 19.32, -26.69)
CIE-LCHlch(16.40, 32.95, 305.90°)
OKLaboklab(28.73% 0.0342 -0.0757)
OKLCHoklch(28.73% 0.083 294.3)
XYZxyz(3.0541, 2.1783, 7.6552)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E204F #414F20
analogous
#202A4F #2E204F #46204F
triadic
#2E204F #4F2E20 #204F2E
tetradic
#2E204F #4F202A #414F20 #204F46
square
#2E204F #4F202A #414F20 #204F46
split-complementary
#2E204F #4F4620 #2A4F20
monochromatic
#0D0916 #150E23 #2E204F #47327B #6143A6

Accessibility & contrast

On white

14.63
#2E204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E204F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E204F
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E204F#FFFFFF#000000##FFFFFF
##2E204F1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2951
Deuteranopia (green-blind)
#0F284E
Tritanopia (blue-blind)
#262A34
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e204f;
/* rgb */ color: rgb(46, 32, 79);
/* oklch */ color: oklch(28.7% 0.083 294.3);
Tailwind
colors: {
  custom: {
    50: '#695c81',
    500: '#2e204f',
    950: '#000000',
  },
}
SCSS
$custom: #2e204f;
$custom-light: #695c81;
$custom-dark: #000000;
JSON
{
  "hex": "#2e204f",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 257.872,
    "s": 42.342,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2873,
    "c": 0.08305,
    "h": 294.3
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#2E204F
secondary
#728347
accent
#D256AD
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E204F

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

Preview Lab → · Contrast checker → · Palette generator →

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