#2E1A6F#2E1A6F

#2E1A6F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.137 H 285.9°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2E1A6F
RGBrgb(46, 26, 111)
HSLhsl(254, 62%, 27%)
HSVhsv(254, 77%, 44%)
CMYKcmyk(58.6%, 76.6%, 0%, 56.5%)
CIE-LABlab(17.77, 33.49, -45.71)
CIE-LCHlch(17.77, 56.67, 306.23°)
OKLaboklab(30.59% 0.0374 -0.1316)
OKLCHoklch(30.59% 0.137 285.9)
XYZxyz(4.3645, 2.4671, 15.2821)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A6F #5B6F1A
analogous
#1A306F #2E1A6F #591A6F
triadic
#2E1A6F #6F2E1A #1A6F2E
tetradic
#2E1A6F #6F1A30 #5B6F1A #1A6F59
square
#2E1A6F #6F1A30 #5B6F1A #1A6F59
split-complementary
#2E1A6F #6F591A #306F1A
monochromatic
#0A0619 #190E3D #2E1A6F #4326A1 #5934CF

Accessibility & contrast

On white

14.06
#2E1A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A6F
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A6F#FFFFFF#000000##FFFFFF
##2E1A6F1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#103143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1a6f;
/* rgb */ color: rgb(46, 26, 111);
/* oklch */ color: oklch(30.6% 0.137 285.9);
Tailwind
colors: {
  custom: {
    50: '#6f5999',
    500: '#2e1a6f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a6f;
$custom-light: #6f5999;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a6f",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 254.118,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3059,
    "c": 0.13677,
    "h": 285.9
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#2E1A6F
secondary
#8DA441
accent
#E543BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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