#2E1A57#2E1A57

#2E1A57 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.105 H 293.7°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1A57
RGBrgb(46, 26, 87)
HSLhsl(260, 54%, 22%)
HSVhsv(260, 70%, 34%)
CMYKcmyk(47.1%, 70.1%, 0%, 65.9%)
CIE-LABlab(15.53, 25.82, -33.51)
CIE-LCHlch(15.53, 42.30, 307.62°)
OKLaboklab(28.3% 0.042 -0.0957)
OKLCHoklch(28.3% 0.105 293.7)
XYZxyz(3.2159, 2.0077, 9.2331)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A57 #43571A
analogous
#1A2557 #2E1A57 #4D1A57
triadic
#2E1A57 #572E1A #1A572E
tetradic
#2E1A57 #571A25 #43571A #1A574D
square
#2E1A57 #571A25 #43571A #1A574D
split-complementary
#2E1A57 #574D1A #25571A
monochromatic
#0C0718 #150C28 #2E1A57 #472886 #6036B5

Accessibility & contrast

On white

14.98
#2E1A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A57
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A57#FFFFFF#000000##FFFFFF
##2E1A571.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#232835
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1a57;
/* rgb */ color: rgb(46, 26, 87);
/* oklch */ color: oklch(28.3% 0.105 293.7);
Tailwind
colors: {
  custom: {
    50: '#6b5887',
    500: '#2e1a57',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a57;
$custom-light: #6b5887;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a57",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 259.672,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28295,
    "c": 0.10455,
    "h": 293.7
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#2E1A57
secondary
#748D40
accent
#DD4AAD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1A57

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

Preview Lab → · Contrast checker → · Palette generator →

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