#2E1F93#2E1F93

#2E1F93 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.177 H 278.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2E1F93
RGBrgb(46, 31, 147)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 58%)
CMYKcmyk(68.7%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.54, 42.28, -60.65)
CIE-LCHlch(22.54, 73.94, 304.88°)
OKLaboklab(35.09% 0.0245 -0.1752)
OKLCHoklch(35.09% 0.177 278)
XYZxyz(6.8815, 3.6668, 27.9432)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F93 #84931F
analogous
#1F4A93 #2E1F93 #681F93
triadic
#2E1F93 #932E1F #1F932E
tetradic
#2E1F93 #931F4A #84931F #1F9368
square
#2E1F93 #931F4A #84931F #1F9368
split-complementary
#2E1F93 #93681F #4A931F
monochromatic
#0E0A2E #1E1460 #2E1F93 #3E2AC6 #6452DA

Accessibility & contrast

On white

12.11
#2E1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F93
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F93#FFFFFF#000000##FFFFFF
##2E1F931.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1f93;
/* rgb */ color: rgb(46, 31, 147);
/* oklch */ color: oklch(35.1% 0.177 278.0);
Tailwind
colors: {
  custom: {
    50: '#765eb4',
    500: '#2e1f93',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f93;
$custom-light: #765eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f93",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 247.759,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35087,
    "c": 0.17692,
    "h": 278
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#2E1F93
secondary
#B0BE50
accent
#E840D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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