#2E2138#2E2138

#2E2138 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.4% C 0.045 H 309.6°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#2E2138
RGBrgb(46, 33, 56)
HSLhsl(274, 26%, 17%)
HSVhsv(274, 41%, 22%)
CMYKcmyk(17.9%, 41.1%, 0%, 78%)
CIE-LABlab(15.24, 11.69, -12.57)
CIE-LCHlch(15.24, 17.17, 312.92°)
OKLaboklab(27.4% 0.0286 -0.0346)
OKLCHoklch(27.4% 0.045 309.6)
XYZxyz(2.3843, 1.9541, 3.9922)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2138 #2B3821
analogous
#222138 #2E2138 #382137
triadic
#2E2138 #382E21 #21382E
tetradic
#2E2138 #382221 #2B3821 #213738
square
#2E2138 #382221 #2B3821 #213738
split-complementary
#2E2138 #373821 #213822
monochromatic
#100B13 #100B13 #2E2138 #4E385F #6D4E85

Accessibility & contrast

On white

15.10
#2E2138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E2138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2138
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2138#FFFFFF#000000##FFFFFF
##2E21381.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2639
Deuteranopia (green-blind)
#202637
Tritanopia (blue-blind)
#2D242A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e2138;
/* rgb */ color: rgb(46, 33, 56);
/* oklch */ color: oklch(27.4% 0.045 309.6);
Tailwind
colors: {
  custom: {
    50: '#675c6e',
    500: '#2e2138',
    950: '#000000',
  },
}
SCSS
$custom: #2e2138;
$custom-light: #675c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2138",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 273.913,
    "s": 25.843,
    "l": 17.451
  },
  "oklch": {
    "l": 0.274,
    "c": 0.04494,
    "h": 309.6
  },
  "luminance": 0.01954
}

Semantic roles & 50–950 ramp

primary
#2E2138
secondary
#586B4A
accent
#C2668E
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2E2138

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

Preview Lab → · Contrast checker → · Palette generator →

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