#2E1FA4#2E1FA4

#2E1FA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 37.0% C 0.197 H 275.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1FA4
RGBrgb(46, 31, 164)
HSLhsl(247, 68%, 38%)
HSVhsv(247, 81%, 64%)
CMYKcmyk(72%, 81.1%, 0%, 35.7%)
CIE-LABlab(24.45, 47.61, -67.90)
CIE-LCHlch(24.45, 82.93, 305.03°)
OKLaboklab(36.98% 0.0199 -0.1963)
OKLCHoklch(36.98% 0.197 275.8)
XYZxyz(8.3153, 4.2404, 35.4950)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FA4 #95A41F
analogous
#1F52A4 #2E1FA4 #701FA4
triadic
#2E1FA4 #A42E1F #1FA42E
tetradic
#2E1FA4 #A41F52 #95A41F #1FA470
square
#2E1FA4 #A41F52 #95A41F #1FA470
split-complementary
#2E1FA4 #A4701F #52A41F
monochromatic
#110C3D #201571 #2E1FA4 #3D2AD7 #6C5DE0

Accessibility & contrast

On white

11.36
#2E1FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E1FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FA4
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FA4#FFFFFF#000000##FFFFFF
##2E1FA41.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e1fa4;
/* rgb */ color: rgb(46, 31, 164);
/* oklch */ color: oklch(37.0% 0.197 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fc0',
    500: '#2e1fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fa4;
$custom-light: #7a5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fa4",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 246.767,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36983,
    "c": 0.1973,
    "h": 275.8
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#2E1FA4
secondary
#B9C55A
accent
#EB3DD7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E1FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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