#2E2249#2E2249

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

Color values

HEX#2E2249
RGBrgb(46, 34, 73)
HSLhsl(258, 36%, 21%)
HSVhsv(258, 53%, 29%)
CMYKcmyk(37%, 53.4%, 0%, 71.4%)
CIE-LABlab(16.53, 16.03, -22.37)
CIE-LCHlch(16.53, 27.52, 305.62°)
OKLaboklab(28.7% 0.0306 -0.063)
OKLCHoklch(28.7% 0.07 295.9)
XYZxyz(2.9010, 2.2059, 6.5750)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2249 #3D4922
analogous
#222949 #2E2249 #412249
triadic
#2E2249 #492E22 #22492E
tetradic
#2E2249 #492229 #3D4922 #224941
square
#2E2249 #492229 #3D4922 #224941
split-complementary
#2E2249 #494122 #294922
monochromatic
#0D0A15 #140F1F #2E2249 #483573 #63499D

Accessibility & contrast

On white

14.57
#2E2249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2249
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2249#FFFFFF#000000##FFFFFF
##2E22491.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15294A
Deuteranopia (green-blind)
#172848
Tritanopia (blue-blind)
#282932
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e2249;
/* rgb */ color: rgb(46, 34, 73);
/* oklch */ color: oklch(28.7% 0.070 295.9);
Tailwind
colors: {
  custom: {
    50: '#685d7c',
    500: '#2e2249',
    950: '#000000',
  },
}
SCSS
$custom: #2e2249;
$custom-light: #685d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2249",
  "rgb": {
    "r": 46,
    "g": 34,
    "b": 73
  },
  "hsl": {
    "h": 258.462,
    "s": 36.449,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28698,
    "c": 0.07006,
    "h": 295.9
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#2E2249
secondary
#6D7D4A
accent
#CC5BAA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2249

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

Preview Lab → · Contrast checker → · Palette generator →

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