#2E1A6C#2E1A6C

#2E1A6C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.133 H 286.7°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2E1A6C
RGBrgb(46, 26, 108)
HSLhsl(255, 61%, 26%)
HSVhsv(255, 76%, 42%)
CMYKcmyk(57.4%, 75.9%, 0%, 57.6%)
CIE-LABlab(17.47, 32.53, -44.25)
CIE-LCHlch(17.47, 54.92, 306.32°)
OKLaboklab(30.29% 0.0381 -0.1273)
OKLCHoklch(30.29% 0.133 286.7)
XYZxyz(4.2021, 2.4021, 14.4267)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A6C #586C1A
analogous
#1A2F6C #2E1A6C #571A6C
triadic
#2E1A6C #6C2E1A #1A6C2E
tetradic
#2E1A6C #6C1A2F #586C1A #1A6C57
square
#2E1A6C #6C1A2F #586C1A #1A6C57
split-complementary
#2E1A6C #6C571A #2F6C1A
monochromatic
#0B0619 #190E3B #2E1A6C #43269D #5833CE

Accessibility & contrast

On white

14.19
#2E1A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A6C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A6C#FFFFFF#000000##FFFFFF
##2E1A6C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#133041
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1a6c;
/* rgb */ color: rgb(46, 26, 108);
/* oklch */ color: oklch(30.3% 0.133 286.7);
Tailwind
colors: {
  custom: {
    50: '#6e5997',
    500: '#2e1a6c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a6c;
$custom-light: #6e5997;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a6c",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 254.634,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30287,
    "c": 0.13287,
    "h": 286.7
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#2E1A6C
secondary
#8AA141
accent
#E443BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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