#2E1F85#2E1F85

#2E1F85 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.159 H 280.1°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2E1F85
RGBrgb(46, 31, 133)
HSLhsl(249, 62%, 32%)
HSVhsv(249, 77%, 52%)
CMYKcmyk(65.4%, 76.7%, 0%, 47.8%)
CIE-LABlab(21.03, 37.78, -54.40)
CIE-LCHlch(21.03, 66.23, 304.78°)
OKLaboklab(33.58% 0.0281 -0.157)
OKLCHoklch(33.58% 0.159 280.1)
XYZxyz(5.8490, 3.2538, 22.5056)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F85 #76851F
analogous
#1F4385 #2E1F85 #611F85
triadic
#2E1F85 #852E1F #1F852E
tetradic
#2E1F85 #851F43 #76851F #1F8561
square
#2E1F85 #851F43 #76851F #1F8561
split-complementary
#2E1F85 #85611F #43851F
monochromatic
#0C0822 #1D1353 #2E1F85 #3F2BB7 #5E4AD5

Accessibility & contrast

On white

12.72
#2E1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F85
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F85#FFFFFF#000000##FFFFFF
##2E1F851.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1f85;
/* rgb */ color: rgb(46, 31, 133);
/* oklch */ color: oklch(33.6% 0.159 280.1);
Tailwind
colors: {
  custom: {
    50: '#735daa',
    500: '#2e1f85',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f85;
$custom-light: #735daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f85",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 248.824,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3358,
    "c": 0.15949,
    "h": 280.1
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#2E1F85
secondary
#A7B749
accent
#E543CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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