#2E1E38#2E1E38

#2E1E38 is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.7% C 0.051 H 311.6°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2E1E38
RGBrgb(46, 30, 56)
HSLhsl(277, 30%, 17%)
HSVhsv(277, 46%, 22%)
CMYKcmyk(17.9%, 46.4%, 0%, 78%)
CIE-LABlab(14.37, 13.80, -13.93)
CIE-LCHlch(14.37, 19.61, 314.74°)
OKLaboklab(26.74% 0.0341 -0.0385)
OKLCHoklch(26.74% 0.051 311.6)
XYZxyz(2.3047, 1.7950, 3.9657)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E38 #28381E
analogous
#211E38 #2E1E38 #381E35
triadic
#2E1E38 #382E1E #1E382E
tetradic
#2E1E38 #38211E #28381E #1E3538
square
#2E1E38 #38211E #28381E #1E3538
split-complementary
#2E1E38 #35381E #1E3821
monochromatic
#100B14 #100B14 #2E1E38 #4F3360 #6F4988

Accessibility & contrast

On white

15.45
#2E1E38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1E38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E38
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E38#FFFFFF#000000##FFFFFF
##2E1E381.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192439
Deuteranopia (green-blind)
#1D2537
Tritanopia (blue-blind)
#2D2228
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1e38;
/* rgb */ color: rgb(46, 30, 56);
/* oklch */ color: oklch(26.7% 0.051 311.6);
Tailwind
colors: {
  custom: {
    50: '#675a6e',
    500: '#2e1e38',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e38;
$custom-light: #675a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e38",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 56
  },
  "hsl": {
    "h": 276.923,
    "s": 30.233,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26739,
    "c": 0.05147,
    "h": 311.6
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#2E1E38
secondary
#556C46
accent
#C66188
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2E1E38

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

Preview Lab → · Contrast checker → · Palette generator →

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