#2E1FB3#2E1FB3

#2E1FB3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.7% C 0.215 H 274.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2E1FB3
RGBrgb(46, 31, 179)
HSLhsl(246, 70%, 41%)
HSVhsv(246, 83%, 70%)
CMYKcmyk(74.3%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.20, 52.17, -74.04)
CIE-LCHlch(26.20, 90.57, 305.17°)
OKLaboklab(38.7% 0.0158 -0.2141)
OKLCHoklch(38.7% 0.215 274.2)
XYZxyz(9.7507, 4.8145, 43.0545)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FB3 #A4B31F
analogous
#1F5AB3 #2E1FB3 #781FB3
triadic
#2E1FB3 #B32E1F #1FB32E
tetradic
#2E1FB3 #B31F5A #A4B31F #1FB378
square
#2E1FB3 #B31F5A #A4B31F #1FB378
split-complementary
#2E1FB3 #B3781F #5AB31F
monochromatic
#130D4B #21167F #2E1FB3 #4533DC #7468E5

Accessibility & contrast

On white

10.70
#2E1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FB3
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FB3#FFFFFF#000000##FFFFFF
##2E1FB31.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e1fb3;
/* rgb */ color: rgb(46, 31, 179);
/* oklch */ color: oklch(38.7% 0.215 274.2);
Tailwind
colors: {
  custom: {
    50: '#7e60cb',
    500: '#2e1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fb3;
$custom-light: #7e60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fb3",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 246.081,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38701,
    "c": 0.21468,
    "h": 274.2
  },
  "luminance": 0.04815
}

Semantic roles & 50–950 ramp

primary
#2E1FB3
secondary
#C0CA64
accent
#ED3BDB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2E1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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