#2E1FB0#2E1FB0

#2E1FB0 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.4% C 0.211 H 274.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2E1FB0
RGBrgb(46, 31, 176)
HSLhsl(246, 70%, 41%)
HSVhsv(246, 82%, 69%)
CMYKcmyk(73.9%, 82.4%, 0%, 31%)
CIE-LABlab(25.85, 51.27, -72.83)
CIE-LCHlch(25.85, 89.06, 305.14°)
OKLaboklab(38.35% 0.0166 -0.2106)
OKLCHoklch(38.35% 0.211 274.5)
XYZxyz(9.4506, 4.6945, 41.4739)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1FB0 #A1B01F
analogous
#1F58B0 #2E1FB0 #761FB0
triadic
#2E1FB0 #B02E1F #1FB02E
tetradic
#2E1FB0 #B01F58 #A1B01F #1FB076
square
#2E1FB0 #B01F58 #A1B01F #1FB076
split-complementary
#2E1FB0 #B0761F #58B01F
monochromatic
#130D48 #20167C #2E1FB0 #4331DB #7365E4

Accessibility & contrast

On white

10.83
#2E1FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2E1FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1FB0
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1FB0#FFFFFF#000000##FFFFFF
##2E1FB01.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B4
Deuteranopia (green-blind)
#0036AE
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e1fb0;
/* rgb */ color: rgb(46, 31, 176);
/* oklch */ color: oklch(38.4% 0.211 274.5);
Tailwind
colors: {
  custom: {
    50: '#7d60c9',
    500: '#2e1fb0',
    950: '#000000',
  },
}
SCSS
$custom: #2e1fb0;
$custom-light: #7d60c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1fb0",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 176
  },
  "hsl": {
    "h": 246.207,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38355,
    "c": 0.21125,
    "h": 274.5
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#2E1FB0
secondary
#BEC962
accent
#ED3BDA
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E1FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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