#2E233B#2E233B

#2E233B is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.0% C 0.045 H 304.7°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2E233B
RGBrgb(46, 35, 59)
HSLhsl(268, 26%, 18%)
HSVhsv(268, 41%, 23%)
CMYKcmyk(22%, 40.7%, 0%, 76.9%)
CIE-LABlab(16.00, 11.12, -13.51)
CIE-LCHlch(16.00, 17.50, 309.44°)
OKLaboklab(28.02% 0.0259 -0.0373)
OKLCHoklch(28.02% 0.045 304.7)
XYZxyz(2.5170, 2.0987, 4.4093)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E233B #303B23
analogous
#23243B #2E233B #3A233B
triadic
#2E233B #3B2E23 #233B2E
tetradic
#2E233B #3B2324 #303B23 #233B3A
square
#2E233B #3B2324 #303B23 #233B3A
split-complementary
#2E233B #3B3A23 #243B23
monochromatic
#0F0B13 #100C15 #2E233B #4C3A61 #6A5188

Accessibility & contrast

On white

14.79
#2E233B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E233B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E233B
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E233B#FFFFFF#000000##FFFFFF
##2E233B1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E273C
Deuteranopia (green-blind)
#20283A
Tritanopia (blue-blind)
#2C272C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e233b;
/* rgb */ color: rgb(46, 35, 59);
/* oklch */ color: oklch(28.0% 0.045 304.7);
Tailwind
colors: {
  custom: {
    50: '#675e71',
    500: '#2e233b',
    950: '#000000',
  },
}
SCSS
$custom: #2e233b;
$custom-light: #675e71;
$custom-dark: #000000;
JSON
{
  "hex": "#2e233b",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 59
  },
  "hsl": {
    "h": 267.5,
    "s": 25.532,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28024,
    "c": 0.04542,
    "h": 304.7
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#2E233B
secondary
#5E6E4C
accent
#C26698
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2E233B

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

Preview Lab → · Contrast checker → · Palette generator →

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