#2E1CA7#2E1CA7

#2E1CA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.203 H 275.7°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2E1CA7
RGBrgb(46, 28, 167)
HSLhsl(248, 71%, 38%)
HSVhsv(248, 83%, 65%)
CMYKcmyk(72.5%, 83.2%, 0%, 34.5%)
CIE-LABlab(24.32, 49.92, -69.93)
CIE-LCHlch(24.32, 85.92, 305.52°)
OKLaboklab(37% 0.0202 -0.2021)
OKLCHoklch(37% 0.203 275.7)
XYZxyz(8.5147, 4.2005, 36.9138)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1CA7 #95A71C
analogous
#1C4FA7 #2E1CA7 #731CA7
triadic
#2E1CA7 #A72E1C #1CA72E
tetradic
#2E1CA7 #A71C4F #95A71C #1CA773
square
#2E1CA7 #A71C4F #95A71C #1CA773
split-complementary
#2E1CA7 #A7731C #4FA71C
monochromatic
#110A3E #201373 #2E1CA7 #3D26DB #6C5AE3

Accessibility & contrast

On white

11.41
#2E1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E1CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1CA7
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1CA7#FFFFFF#000000##FFFFFF
##2E1CA71.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e1ca7;
/* rgb */ color: rgb(46, 28, 167);
/* oklch */ color: oklch(37.0% 0.203 275.7);
Tailwind
colors: {
  custom: {
    50: '#7b5dc3',
    500: '#2e1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2e1ca7;
$custom-light: #7b5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1ca7",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 247.77,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.20314,
    "h": 275.7
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#2E1CA7
secondary
#B9C758
accent
#EE3AD7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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