#2E2438#2E2438

#2E2438 is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.1% C 0.038 H 306.9°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2E2438
RGBrgb(46, 36, 56)
HSLhsl(270, 22%, 18%)
HSVhsv(270, 36%, 22%)
CMYKcmyk(17.9%, 35.7%, 0%, 78%)
CIE-LABlab(16.15, 9.57, -11.18)
CIE-LCHlch(16.15, 14.71, 310.56°)
OKLaboklab(28.09% 0.0231 -0.0307)
OKLCHoklch(28.09% 0.038 306.9)
XYZxyz(2.4713, 2.1281, 4.0212)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2438 #2E3824
analogous
#242438 #2E2438 #382438
triadic
#2E2438 #382E24 #24382E
tetradic
#2E2438 #382424 #2E3824 #243838
square
#2E2438 #382424 #2E3824 #243838
split-complementary
#2E2438 #383824 #243824
monochromatic
#0F0C13 #0F0C13 #2E2438 #4D3C5D #6B5483

Accessibility & contrast

On white

14.73
#2E2438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2438
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2438#FFFFFF#000000##FFFFFF
##2E24381.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202839
Deuteranopia (green-blind)
#222837
Tritanopia (blue-blind)
#2D272B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2438;
/* rgb */ color: rgb(46, 36, 56);
/* oklch */ color: oklch(28.1% 0.038 306.9);
Tailwind
colors: {
  custom: {
    50: '#675e6e',
    500: '#2e2438',
    950: '#000000',
  },
}
SCSS
$custom: #2e2438;
$custom-light: #675e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2438",
  "rgb": {
    "r": 46,
    "g": 36,
    "b": 56
  },
  "hsl": {
    "h": 270,
    "s": 21.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28087,
    "c": 0.0384,
    "h": 306.9
  },
  "luminance": 0.02128
}

Semantic roles & 50–950 ramp

primary
#2E2438
secondary
#5C6A4E
accent
#BE6A94
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2E2438

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

Preview Lab → · Contrast checker → · Palette generator →

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