#2E1F7E#2E1F7E

#2E1F7E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.151 H 281.4°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2E1F7E
RGBrgb(46, 31, 126)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 75%, 49%)
CMYKcmyk(63.5%, 75.4%, 0%, 50.6%)
CIE-LABlab(20.31, 35.49, -51.17)
CIE-LCHlch(20.31, 62.27, 304.74°)
OKLaboklab(32.85% 0.0297 -0.1475)
OKLCHoklch(32.85% 0.151 281.4)
XYZxyz(5.3814, 3.0668, 20.0430)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F7E #6F7E1F
analogous
#1F3F7E #2E1F7E #5D1F7E
triadic
#2E1F7E #7E2E1F #1F7E2E
tetradic
#2E1F7E #7E1F3F #6F7E1F #1F7E5D
square
#2E1F7E #7E1F3F #6F7E1F #1F7E5D
split-complementary
#2E1F7E #7E5D1F #3F7E1F
monochromatic
#0A071C #1C134D #2E1F7E #402BAF #5C46D1

Accessibility & contrast

On white

13.02
#2E1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F7E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F7E#FFFFFF#000000##FFFFFF
##2E1F7E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1f7e;
/* rgb */ color: rgb(46, 31, 126);
/* oklch */ color: oklch(32.9% 0.151 281.4);
Tailwind
colors: {
  custom: {
    50: '#725da4',
    500: '#2e1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f7e;
$custom-light: #725da4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f7e",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 249.474,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3285,
    "c": 0.15052,
    "h": 281.4
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#2E1F7E
secondary
#A0B148
accent
#E444CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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