#2E2145#2E2145

#2E2145 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.2% C 0.066 H 298.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2E2145
RGBrgb(46, 33, 69)
HSLhsl(262, 35%, 20%)
HSVhsv(262, 52%, 27%)
CMYKcmyk(33.3%, 52.2%, 0%, 72.9%)
CIE-LABlab(15.99, 15.49, -20.47)
CIE-LCHlch(15.99, 25.67, 307.11°)
OKLaboklab(28.21% 0.0316 -0.0575)
OKLCHoklch(28.21% 0.066 298.8)
XYZxyz(2.7445, 2.0982, 5.8895)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2145 #384521
analogous
#212645 #2E2145 #402145
triadic
#2E2145 #452E21 #21452E
tetradic
#2E2145 #452126 #384521 #214540
square
#2E2145 #452126 #384521 #214540
split-complementary
#2E2145 #454021 #264521
monochromatic
#0E0A15 #120D1C #2E2145 #4A356E #654998

Accessibility & contrast

On white

14.79
#2E2145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2145
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2145#FFFFFF#000000##FFFFFF
##2E21451.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162846
Deuteranopia (green-blind)
#192744
Tritanopia (blue-blind)
#29282F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2145;
/* rgb */ color: rgb(46, 33, 69);
/* oklch */ color: oklch(28.2% 0.066 298.8);
Tailwind
colors: {
  custom: {
    50: '#685c79',
    500: '#2e2145',
    950: '#000000',
  },
}
SCSS
$custom: #2e2145;
$custom-light: #685c79;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2145",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 261.667,
    "s": 35.294,
    "l": 20
  },
  "oklch": {
    "l": 0.28211,
    "c": 0.0656,
    "h": 298.8
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#2E2145
secondary
#687949
accent
#CB5CA3
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2145

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

Preview Lab → · Contrast checker → · Palette generator →

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