#2E2834#2E2834

#2E2834 is a dark, muted violet. Relative luminance 0.023; OKLCH L 28.8% C 0.023 H 307.6°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2E2834
RGBrgb(46, 40, 52)
HSLhsl(270, 13%, 18%)
HSVhsv(270, 23%, 20%)
CMYKcmyk(11.5%, 23.1%, 0%, 79.6%)
CIE-LABlab(17.21, 5.66, -6.75)
CIE-LCHlch(17.21, 8.81, 309.97°)
OKLaboklab(28.85% 0.0141 -0.0183)
OKLCHoklch(28.85% 0.023 307.6)
XYZxyz(2.5052, 2.3464, 3.5691)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2834 #2E3428
analogous
#282834 #2E2834 #342834
triadic
#2E2834 #342E28 #28342E
tetradic
#2E2834 #342828 #2E3428 #283434
square
#2E2834 #342828 #2E3428 #283434
split-complementary
#2E2834 #343428 #283428
monochromatic
#0F0D11 #0F0D11 #2E2834 #4D4357 #6B5D79

Accessibility & contrast

On white

14.29
#2E2834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E2834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2834
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2834#FFFFFF#000000##FFFFFF
##2E28341.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262A35
Deuteranopia (green-blind)
#272A34
Tritanopia (blue-blind)
#2D2A2C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2834;
/* rgb */ color: rgb(46, 40, 52);
/* oklch */ color: oklch(28.8% 0.023 307.6);
Tailwind
colors: {
  custom: {
    50: '#66616b',
    500: '#2e2834',
    950: '#000000',
  },
}
SCSS
$custom: #2e2834;
$custom-light: #66616b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2834",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 52
  },
  "hsl": {
    "h": 270,
    "s": 13.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28845,
    "c": 0.02307,
    "h": 307.6
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#2E2834
secondary
#5C6454
accent
#B67294
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060506
muted
#7A797A

Preview Lab

Preview with #2E2834

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

Preview Lab → · Contrast checker → · Palette generator →

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