#2E1FA7#2E1FA7

#2E1FA7 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.3% C 0.201 H 275.4°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2E1FA7
RGBrgb(46, 31, 167)
HSLhsl(247, 69%, 39%)
HSVhsv(247, 81%, 65%)
CMYKcmyk(72.5%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.80, 48.53, -69.15)
CIE-LCHlch(24.80, 84.48, 305.06°)
OKLaboklab(37.32% 0.0191 -0.1999)
OKLCHoklch(37.32% 0.201 275.4)
XYZxyz(8.5895, 4.3500, 36.9387)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FA7 #98A71F
analogous
#1F54A7 #2E1FA7 #721FA7
triadic
#2E1FA7 #A72E1F #1FA72E
tetradic
#2E1FA7 #A71F54 #98A71F #1FA772
square
#2E1FA7 #A71F54 #98A71F #1FA772
split-complementary
#2E1FA7 #A7721F #54A71F
monochromatic
#120C40 #201573 #2E1FA7 #3E2BD8 #6D5FE1

Accessibility & contrast

On white

11.23
#2E1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2E1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FA7
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FA7#FFFFFF#000000##FFFFFF
##2E1FA71.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e1fa7;
/* rgb */ color: rgb(46, 31, 167);
/* oklch */ color: oklch(37.3% 0.201 275.4);
Tailwind
colors: {
  custom: {
    50: '#7b5fc3',
    500: '#2e1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fa7;
$custom-light: #7b5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fa7",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 246.618,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37323,
    "c": 0.20083,
    "h": 275.4
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#2E1FA7
secondary
#BAC65C
accent
#EC3CD8
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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