#2E2147#2E2147

#2E2147 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.069 H 297.6°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#2E2147
RGBrgb(46, 33, 71)
HSLhsl(261, 37%, 20%)
HSVhsv(261, 54%, 28%)
CMYKcmyk(35.2%, 53.5%, 0%, 72.2%)
CIE-LABlab(16.12, 16.10, -21.65)
CIE-LCHlch(16.12, 26.98, 306.64°)
OKLaboklab(28.35% 0.0319 -0.0609)
OKLCHoklch(28.35% 0.069 297.6)
XYZxyz(2.8076, 2.1235, 6.2220)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2147 #3A4721
analogous
#212747 #2E2147 #412147
triadic
#2E2147 #472E21 #21472E
tetradic
#2E2147 #472127 #3A4721 #214741
square
#2E2147 #472127 #3A4721 #214741
split-complementary
#2E2147 #474121 #274721
monochromatic
#0E0A15 #130E1D #2E2147 #493471 #64489B

Accessibility & contrast

On white

14.74
#2E2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2147
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2147#FFFFFF#000000##FFFFFF
##2E21471.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152848
Deuteranopia (green-blind)
#172846
Tritanopia (blue-blind)
#292830
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e2147;
/* rgb */ color: rgb(46, 33, 71);
/* oklch */ color: oklch(28.3% 0.069 297.6);
Tailwind
colors: {
  custom: {
    50: '#685c7a',
    500: '#2e2147',
    950: '#000000',
  },
}
SCSS
$custom: #2e2147;
$custom-light: #685c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2147",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 260.526,
    "s": 36.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28349,
    "c": 0.06878,
    "h": 297.6
  },
  "luminance": 0.02123
}

Semantic roles & 50–950 ramp

primary
#2E2147
secondary
#6A7B49
accent
#CD5BA6
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060409
muted
#7A797B

Preview Lab

Preview with #2E2147

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

Preview Lab → · Contrast checker → · Palette generator →

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