#2E1A6E#2E1A6E

#2E1A6E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.135 H 286.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1A6E
RGBrgb(46, 26, 110)
HSLhsl(254, 62%, 27%)
HSVhsv(254, 76%, 43%)
CMYKcmyk(58.2%, 76.4%, 0%, 56.9%)
CIE-LABlab(17.67, 33.17, -45.23)
CIE-LCHlch(17.67, 56.09, 306.26°)
OKLaboklab(30.49% 0.0376 -0.1301)
OKLCHoklch(30.49% 0.135 286.1)
XYZxyz(4.3097, 2.4452, 14.9937)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A6E #5A6E1A
analogous
#1A306E #2E1A6E #581A6E
triadic
#2E1A6E #6E2E1A #1A6E2E
tetradic
#2E1A6E #6E1A30 #5A6E1A #1A6E58
square
#2E1A6E #6E1A30 #5A6E1A #1A6E58
split-complementary
#2E1A6E #6E581A #306E1A
monochromatic
#0A0619 #190E3D #2E1A6E #4326A0 #5934CF

Accessibility & contrast

On white

14.10
#2E1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A6E
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A6E#FFFFFF#000000##FFFFFF
##2E1A6E1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#113142
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1a6e;
/* rgb */ color: rgb(46, 26, 110);
/* oklch */ color: oklch(30.5% 0.135 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f5998',
    500: '#2e1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a6e;
$custom-light: #6f5998;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a6e",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 254.286,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30488,
    "c": 0.13547,
    "h": 286.1
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#2E1A6E
secondary
#8CA341
accent
#E543BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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