#2E1E91#2E1E91

#2E1E91 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.175 H 278.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1E91
RGBrgb(46, 30, 145)
HSLhsl(248, 66%, 34%)
HSVhsv(248, 79%, 57%)
CMYKcmyk(68.3%, 79.3%, 0%, 43.1%)
CIE-LABlab(22.14, 42.17, -60.08)
CIE-LCHlch(22.14, 73.40, 305.07°)
OKLaboklab(34.74% 0.0256 -0.1735)
OKLCHoklch(34.74% 0.175 278.4)
XYZxyz(6.7002, 3.5532, 27.1153)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E91 #81911E
analogous
#1E4891 #2E1E91 #681E91
triadic
#2E1E91 #912E1E #1E912E
tetradic
#2E1E91 #911E48 #81911E #1E9168
square
#2E1E91 #911E48 #81911E #1E9168
split-complementary
#2E1E91 #91681E #48911E
monochromatic
#0E092C #1E145E #2E1E91 #3E28C4 #624FDB

Accessibility & contrast

On white

12.27
#2E1E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E1E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E91
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E91#FFFFFF#000000##FFFFFF
##2E1E911.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1e91;
/* rgb */ color: rgb(46, 30, 145);
/* oklch */ color: oklch(34.7% 0.175 278.4);
Tailwind
colors: {
  custom: {
    50: '#765db2',
    500: '#2e1e91',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e91;
$custom-light: #765db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e91",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 248.348,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3474,
    "c": 0.17541,
    "h": 278.4
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#2E1E91
secondary
#AEBD4D
accent
#E93FD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1E91

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

Preview Lab → · Contrast checker → · Palette generator →

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