#2E1F95#2E1F95

#2E1F95 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.179 H 277.7°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2E1F95
RGBrgb(46, 31, 149)
HSLhsl(248, 66%, 35%)
HSVhsv(248, 79%, 58%)
CMYKcmyk(69.1%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.76, 42.92, -61.52)
CIE-LCHlch(22.76, 75.01, 304.90°)
OKLaboklab(35.31% 0.0239 -0.1778)
OKLCHoklch(35.31% 0.179 277.7)
XYZxyz(7.0398, 3.7301, 28.7769)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F95 #86951F
analogous
#1F4B95 #2E1F95 #691F95
triadic
#2E1F95 #952E1F #1F952E
tetradic
#2E1F95 #951F4B #86951F #1F9569
square
#2E1F95 #951F4B #86951F #1F9569
split-complementary
#2E1F95 #95691F #4B951F
monochromatic
#0F0A30 #1E1462 #2E1F95 #3E2AC8 #6453DB

Accessibility & contrast

On white

12.03
#2E1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F95
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F95#FFFFFF#000000##FFFFFF
##2E1F951.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1f95;
/* rgb */ color: rgb(46, 31, 149);
/* oklch */ color: oklch(35.3% 0.179 277.7);
Tailwind
colors: {
  custom: {
    50: '#775eb5',
    500: '#2e1f95',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f95;
$custom-light: #775eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f95",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 247.627,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35306,
    "c": 0.17936,
    "h": 277.7
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#2E1F95
secondary
#B1BF51
accent
#E93FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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