#2E1658#2E1658

#2E1658 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.112 H 294.7°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2E1658
RGBrgb(46, 22, 88)
HSLhsl(262, 60%, 22%)
HSVhsv(262, 75%, 35%)
CMYKcmyk(47.7%, 75%, 0%, 65.5%)
CIE-LABlab(14.73, 28.56, -35.48)
CIE-LCHlch(14.73, 45.55, 308.84°)
OKLaboklab(27.75% 0.0466 -0.1015)
OKLCHoklch(27.75% 0.112 294.7)
XYZxyz(3.1746, 1.8592, 9.4222)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1658 #405816
analogous
#161F58 #2E1658 #4F1658
triadic
#2E1658 #582E16 #16582E
tetradic
#2E1658 #58161F #405816 #16584F
square
#2E1658 #58161F #405816 #16584F
split-complementary
#2E1658 #584F16 #1F5816
monochromatic
#0D0618 #140A27 #2E1658 #482289 #612EBA

Accessibility & contrast

On white

15.31
#2E1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1658
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1658#FFFFFF#000000##FFFFFF
##2E16581.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#222635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1658;
/* rgb */ color: rgb(46, 22, 88);
/* oklch */ color: oklch(27.8% 0.112 294.7);
Tailwind
colors: {
  custom: {
    50: '#6b5588',
    500: '#2e1658',
    950: '#000000',
  },
}
SCSS
$custom: #2e1658;
$custom-light: #6b5588;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1658",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 261.818,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2775,
    "c": 0.11171,
    "h": 294.7
  },
  "luminance": 0.01859
}

Semantic roles & 50–950 ramp

primary
#2E1658
secondary
#708F3B
accent
#E345AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1658

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

Preview Lab → · Contrast checker → · Palette generator →

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