#2E2045#2E2045

#2E2045 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.068 H 299.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2E2045
RGBrgb(46, 32, 69)
HSLhsl(263, 37%, 20%)
HSVhsv(263, 54%, 27%)
CMYKcmyk(33.3%, 53.6%, 0%, 72.9%)
CIE-LABlab(15.71, 16.19, -20.92)
CIE-LCHlch(15.71, 26.45, 307.73°)
OKLaboklab(28% 0.0333 -0.0588)
OKLCHoklch(28% 0.068 299.5)
XYZxyz(2.7172, 2.0435, 5.8804)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2045 #374520
analogous
#202445 #2E2045 #412045
triadic
#2E2045 #452E20 #20452E
tetradic
#2E2045 #452024 #374520 #204541
square
#2E2045 #452024 #374520 #204541
split-complementary
#2E2045 #454120 #244520
monochromatic
#0E0A15 #120D1B #2E2045 #4A336F #664799

Accessibility & contrast

On white

14.91
#2E2045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E2045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2045
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2045#FFFFFF#000000##FFFFFF
##2E20451.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142746
Deuteranopia (green-blind)
#182744
Tritanopia (blue-blind)
#29272F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e2045;
/* rgb */ color: rgb(46, 32, 69);
/* oklch */ color: oklch(28.0% 0.068 299.5);
Tailwind
colors: {
  custom: {
    50: '#685b79',
    500: '#2e2045',
    950: '#000000',
  },
}
SCSS
$custom: #2e2045;
$custom-light: #685b79;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2045",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 69
  },
  "hsl": {
    "h": 262.703,
    "s": 36.634,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28001,
    "c": 0.06754,
    "h": 299.5
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#2E2045
secondary
#667948
accent
#CD5BA2
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2045

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

Preview Lab → · Contrast checker → · Palette generator →

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