#2E204B#2E204B

#2E204B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.077 H 296.2°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#2E204B
RGBrgb(46, 32, 75)
HSLhsl(260, 40%, 21%)
HSVhsv(260, 57%, 29%)
CMYKcmyk(38.7%, 57.3%, 0%, 70.6%)
CIE-LABlab(16.11, 18.05, -24.41)
CIE-LCHlch(16.11, 30.36, 306.48°)
OKLaboklab(28.43% 0.0339 -0.069)
OKLCHoklch(28.43% 0.077 296.2)
XYZxyz(2.9129, 2.1218, 6.9113)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E204B #3D4B20
analogous
#20274B #2E204B #43204B
triadic
#2E204B #4B2E20 #204B2E
tetradic
#2E204B #4B2027 #3D4B20 #204B43
square
#2E204B #4B2027 #3D4B20 #204B43
split-complementary
#2E204B #4B4320 #274B20
monochromatic
#0D0915 #140E20 #2E204B #483276 #6345A1

Accessibility & contrast

On white

14.74
#2E204B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E204B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E204B
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E204B#FFFFFF#000000##FFFFFF
##2E204B1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F284C
Deuteranopia (green-blind)
#13274A
Tritanopia (blue-blind)
#272832
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e204b;
/* rgb */ color: rgb(46, 32, 75);
/* oklch */ color: oklch(28.4% 0.077 296.2);
Tailwind
colors: {
  custom: {
    50: '#695c7d',
    500: '#2e204b',
    950: '#000000',
  },
}
SCSS
$custom: #2e204b;
$custom-light: #695c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e204b",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 75
  },
  "hsl": {
    "h": 259.535,
    "s": 40.187,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28429,
    "c": 0.07689,
    "h": 296.2
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#2E204B
secondary
#6D7F47
accent
#D058A9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2E204B

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

Preview Lab → · Contrast checker → · Palette generator →

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