#2E2144#2E2144

#2E2144 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.1% C 0.064 H 299.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2E2144
RGBrgb(46, 33, 68)
HSLhsl(262, 35%, 20%)
HSVhsv(262, 51%, 27%)
CMYKcmyk(32.4%, 51.5%, 0%, 73.3%)
CIE-LABlab(15.93, 15.18, -19.88)
CIE-LCHlch(15.93, 25.02, 307.37°)
OKLaboklab(28.14% 0.0314 -0.0558)
OKLCHoklch(28.14% 0.064 299.4)
XYZxyz(2.7137, 2.0859, 5.7274)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2144 #374421
analogous
#212644 #2E2144 #402144
triadic
#2E2144 #442E21 #21442E
tetradic
#2E2144 #442126 #374421 #214440
square
#2E2144 #442126 #374421 #214440
split-complementary
#2E2144 #444021 #264421
monochromatic
#0E0A15 #120D1B #2E2144 #4A356D #664996

Accessibility & contrast

On white

14.82
#2E2144 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2144
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2144#FFFFFF#000000##FFFFFF
##2E21441.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172845
Deuteranopia (green-blind)
#192743
Tritanopia (blue-blind)
#2A272F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2144;
/* rgb */ color: rgb(46, 33, 68);
/* oklch */ color: oklch(28.1% 0.064 299.4);
Tailwind
colors: {
  custom: {
    50: '#685c78',
    500: '#2e2144',
    950: '#000000',
  },
}
SCSS
$custom: #2e2144;
$custom-light: #685c78;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2144",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 68
  },
  "hsl": {
    "h": 262.286,
    "s": 34.653,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28144,
    "c": 0.06402,
    "h": 299.4
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#2E2144
secondary
#667849
accent
#CB5DA2
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2144

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

Preview Lab → · Contrast checker → · Palette generator →

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