#2E283F#2E283F

#2E283F is a dark, muted violet. Relative luminance 0.025; OKLCH L 29.4% C 0.042 H 295.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#2E283F
RGBrgb(46, 40, 63)
HSLhsl(256, 22%, 20%)
HSVhsv(256, 37%, 25%)
CMYKcmyk(27%, 36.5%, 0%, 75.3%)
CIE-LABlab(17.72, 8.74, -13.61)
CIE-LCHlch(17.72, 16.18, 302.69°)
OKLaboklab(29.41% 0.0181 -0.0377)
OKLCHoklch(29.41% 0.042 295.7)
XYZxyz(2.7825, 2.4573, 5.0294)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E283F #393F28
analogous
#282D3F #2E283F #39283F
triadic
#2E283F #3F2E28 #283F2E
tetradic
#2E283F #3F282D #393F28 #283F39
square
#2E283F #3F282D #393F28 #283F39
split-complementary
#2E283F #3F3928 #2D3F28
monochromatic
#0E0C13 #13101A #2E283F #494064 #65588A

Accessibility & contrast

On white

14.08
#2E283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E283F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E283F
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E283F#FFFFFF#000000##FFFFFF
##2E283F1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C40
Deuteranopia (green-blind)
#232B3E
Tritanopia (blue-blind)
#2B2C30
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e283f;
/* rgb */ color: rgb(46, 40, 63);
/* oklch */ color: oklch(29.4% 0.042 295.7);
Tailwind
colors: {
  custom: {
    50: '#676174',
    500: '#2e283f',
    950: '#000000',
  },
}
SCSS
$custom: #2e283f;
$custom-light: #676174;
$custom-dark: #000000;
JSON
{
  "hex": "#2e283f",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 255.652,
    "s": 22.33,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29412,
    "c": 0.04181,
    "h": 295.7
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#2E283F
secondary
#697152
accent
#BF69A8
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2E283F

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

Preview Lab → · Contrast checker → · Palette generator →

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