#2E1F8E#2E1F8E

#2E1F8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.171 H 278.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2E1F8E
RGBrgb(46, 31, 142)
HSLhsl(248, 64%, 34%)
HSVhsv(248, 78%, 56%)
CMYKcmyk(67.6%, 78.2%, 0%, 44.3%)
CIE-LABlab(21.99, 40.68, -58.45)
CIE-LCHlch(21.99, 71.22, 304.84°)
OKLaboklab(34.54% 0.0258 -0.1688)
OKLCHoklch(34.54% 0.171 278.7)
XYZxyz(6.4976, 3.5133, 25.9217)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F8E #7F8E1F
analogous
#1F488E #2E1F8E #661F8E
triadic
#2E1F8E #8E2E1F #1F8E2E
tetradic
#2E1F8E #8E1F48 #7F8E1F #1F8E66
square
#2E1F8E #8E1F48 #7F8E1F #1F8E66
split-complementary
#2E1F8E #8E661F #488E1F
monochromatic
#0D092A #1E145C #2E1F8E #3E2AC0 #614FD9

Accessibility & contrast

On white

12.33
#2E1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F8E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F8E#FFFFFF#000000##FFFFFF
##2E1F8E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1f8e;
/* rgb */ color: rgb(46, 31, 142);
/* oklch */ color: oklch(34.5% 0.171 278.7);
Tailwind
colors: {
  custom: {
    50: '#755db0',
    500: '#2e1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f8e;
$custom-light: #755db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f8e",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 248.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.17077,
    "h": 278.7
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#2E1F8E
secondary
#ADBB4D
accent
#E741D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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