#2E2148#2E2148

#2E2148 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.070 H 297.1°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2E2148
RGBrgb(46, 33, 72)
HSLhsl(260, 37%, 21%)
HSVhsv(260, 54%, 28%)
CMYKcmyk(36.1%, 54.2%, 0%, 71.8%)
CIE-LABlab(16.19, 16.42, -22.24)
CIE-LCHlch(16.19, 27.64, 306.44°)
OKLaboklab(28.42% 0.032 -0.0626)
OKLCHoklch(28.42% 0.07 297.1)
XYZxyz(2.8400, 2.1364, 6.3924)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2148 #3B4821
analogous
#212748 #2E2148 #412148
triadic
#2E2148 #482E21 #21482E
tetradic
#2E2148 #482127 #3B4821 #214841
square
#2E2148 #482127 #3B4821 #214841
split-complementary
#2E2148 #484121 #274821
monochromatic
#0D0A15 #130E1E #2E2148 #493472 #64479C

Accessibility & contrast

On white

14.71
#2E2148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2148
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2148#FFFFFF#000000##FFFFFF
##2E21481.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142849
Deuteranopia (green-blind)
#172847
Tritanopia (blue-blind)
#282831
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2148;
/* rgb */ color: rgb(46, 33, 72);
/* oklch */ color: oklch(28.4% 0.070 297.1);
Tailwind
colors: {
  custom: {
    50: '#685c7b',
    500: '#2e2148',
    950: '#000000',
  },
}
SCSS
$custom: #2e2148;
$custom-light: #685c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2148",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 260,
    "s": 37.143,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28419,
    "c": 0.07035,
    "h": 297.1
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#2E2148
secondary
#6B7C49
accent
#CD5BA7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2148

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

Preview Lab → · Contrast checker → · Palette generator →

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