#2E2149#2E2149

#2E2149 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.072 H 296.6°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2E2149
RGBrgb(46, 33, 73)
HSLhsl(260, 38%, 21%)
HSVhsv(260, 55%, 29%)
CMYKcmyk(37%, 54.8%, 0%, 71.4%)
CIE-LABlab(16.25, 16.73, -22.82)
CIE-LCHlch(16.25, 28.29, 306.24°)
OKLaboklab(28.49% 0.0322 -0.0643)
OKLCHoklch(28.49% 0.072 296.6)
XYZxyz(2.8729, 2.1496, 6.5656)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2149 #3C4921
analogous
#212849 #2E2149 #422149
triadic
#2E2149 #492E21 #21492E
tetradic
#2E2149 #492128 #3C4921 #214942
square
#2E2149 #492128 #3C4921 #214942
split-complementary
#2E2149 #494221 #284921
monochromatic
#0D0A15 #130E1F #2E2149 #493473 #63479D

Accessibility & contrast

On white

14.69
#2E2149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E2149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2149
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2149#FFFFFF#000000##FFFFFF
##2E21491.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13294A
Deuteranopia (green-blind)
#162848
Tritanopia (blue-blind)
#282931
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2149;
/* rgb */ color: rgb(46, 33, 73);
/* oklch */ color: oklch(28.5% 0.072 296.6);
Tailwind
colors: {
  custom: {
    50: '#685c7c',
    500: '#2e2149',
    950: '#000000',
  },
}
SCSS
$custom: #2e2149;
$custom-light: #685c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2149",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 73
  },
  "hsl": {
    "h": 259.5,
    "s": 37.736,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28489,
    "c": 0.07193,
    "h": 296.6
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#2E2149
secondary
#6C7D49
accent
#CE5AA8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2149

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

Preview Lab → · Contrast checker → · Palette generator →

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