#2E1A63#2E1A63

#2E1A63 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.121 H 289.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2E1A63
RGBrgb(46, 26, 99)
HSLhsl(256, 58%, 25%)
HSVhsv(256, 74%, 39%)
CMYKcmyk(53.5%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.60, 29.65, -39.76)
CIE-LCHlch(16.60, 49.60, 306.71°)
OKLaboklab(29.4% 0.0401 -0.1141)
OKLCHoklch(29.4% 0.121 289.4)
XYZxyz(3.7476, 2.2203, 12.0331)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A63 #4F631A
analogous
#1A2B63 #2E1A63 #531A63
triadic
#2E1A63 #632E1A #1A632E
tetradic
#2E1A63 #631A2B #4F631A #1A6353
square
#2E1A63 #631A2B #4F631A #1A6353
split-complementary
#2E1A63 #63531A #2B631A
monochromatic
#0B0618 #170D33 #2E1A63 #452793 #5B33C4

Accessibility & contrast

On white

14.54
#2E1A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A63
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A63#FFFFFF#000000##FFFFFF
##2E1A631.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002762
Tritanopia (blue-blind)
#1B2D3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1a63;
/* rgb */ color: rgb(46, 26, 99);
/* oklch */ color: oklch(29.4% 0.121 289.4);
Tailwind
colors: {
  custom: {
    50: '#6d5890',
    500: '#2e1a63',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a63;
$custom-light: #6d5890;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a63",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 256.438,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29403,
    "c": 0.12096,
    "h": 289.4
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#2E1A63
secondary
#809940
accent
#E246B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2E1A63

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

Preview Lab → · Contrast checker → · Palette generator →

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