#2E1FA0#2E1FA0

#2E1FA0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.193 H 276.3°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2E1FA0
RGBrgb(46, 31, 160)
HSLhsl(247, 68%, 37%)
HSVhsv(247, 81%, 63%)
CMYKcmyk(71.2%, 80.6%, 0%, 37.3%)
CIE-LABlab(23.99, 46.37, -66.23)
CIE-LCHlch(23.99, 80.85, 305.00°)
OKLaboklab(36.53% 0.021 -0.1914)
OKLCHoklch(36.53% 0.193 276.3)
XYZxyz(7.9598, 4.0981, 33.6224)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FA0 #91A01F
analogous
#1F50A0 #2E1FA0 #6F1FA0
triadic
#2E1FA0 #A02E1F #1FA02E
tetradic
#2E1FA0 #A01F50 #91A01F #1FA06F
square
#2E1FA0 #A01F50 #91A01F #1FA06F
split-complementary
#2E1FA0 #A06F1F #50A01F
monochromatic
#110B39 #1F156D #2E1FA0 #3D29D3 #6A5ADF

Accessibility & contrast

On white

11.54
#2E1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FA0
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FA0#FFFFFF#000000##FFFFFF
##2E1FA01.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e1fa0;
/* rgb */ color: rgb(46, 31, 160);
/* oklch */ color: oklch(36.5% 0.193 276.3);
Tailwind
colors: {
  custom: {
    50: '#795fbd',
    500: '#2e1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fa0;
$custom-light: #795fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fa0",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 246.977,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36531,
    "c": 0.19259,
    "h": 276.3
  },
  "luminance": 0.04099
}

Semantic roles & 50–950 ramp

primary
#2E1FA0
secondary
#B7C358
accent
#EA3DD6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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