#2E1FA6#2E1FA6

#2E1FA6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.200 H 275.6°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1FA6
RGBrgb(46, 31, 166)
HSLhsl(247, 69%, 39%)
HSVhsv(247, 81%, 65%)
CMYKcmyk(72.3%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.68, 48.22, -68.74)
CIE-LCHlch(24.68, 83.96, 305.05°)
OKLaboklab(37.21% 0.0193 -0.1987)
OKLCHoklch(37.21% 0.2 275.6)
XYZxyz(8.4974, 4.3132, 36.4537)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FA6 #97A61F
analogous
#1F53A6 #2E1FA6 #711FA6
triadic
#2E1FA6 #A62E1F #1FA62E
tetradic
#2E1FA6 #A61F53 #97A61F #1FA671
square
#2E1FA6 #A61F53 #97A61F #1FA671
split-complementary
#2E1FA6 #A6711F #53A61F
monochromatic
#110C3F #201572 #2E1FA6 #3E2BD7 #6D5EE1

Accessibility & contrast

On white

11.27
#2E1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FA6
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FA6#FFFFFF#000000##FFFFFF
##2E1FA61.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e1fa6;
/* rgb */ color: rgb(46, 31, 166);
/* oklch */ color: oklch(37.2% 0.200 275.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fc2',
    500: '#2e1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fa6;
$custom-light: #7a5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fa6",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 246.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.19966,
    "h": 275.6
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#2E1FA6
secondary
#BAC55B
accent
#EB3CD8
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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