#2E1F8D#2E1F8D

#2E1F8D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.170 H 278.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2E1F8D
RGBrgb(46, 31, 141)
HSLhsl(248, 64%, 34%)
HSVhsv(248, 78%, 55%)
CMYKcmyk(67.4%, 78%, 0%, 44.7%)
CIE-LABlab(21.88, 40.36, -58.01)
CIE-LCHlch(21.88, 70.67, 304.83°)
OKLaboklab(34.43% 0.026 -0.1675)
OKLCHoklch(34.43% 0.17 278.8)
XYZxyz(6.4229, 3.4834, 25.5280)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F8D #7E8D1F
analogous
#1F478D #2E1F8D #651F8D
triadic
#2E1F8D #8D2E1F #1F8D2E
tetradic
#2E1F8D #8D1F47 #7E8D1F #1F8D65
square
#2E1F8D #8D1F47 #7E8D1F #1F8D65
split-complementary
#2E1F8D #8D651F #478D1F
monochromatic
#0D0929 #1E145B #2E1F8D #3E2ABF #614ED8

Accessibility & contrast

On white

12.38
#2E1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F8D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F8D#FFFFFF#000000##FFFFFF
##2E1F8D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1f8d;
/* rgb */ color: rgb(46, 31, 141);
/* oklch */ color: oklch(34.4% 0.170 278.8);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2e1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f8d;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f8d",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 248.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34434,
    "c": 0.16952,
    "h": 278.8
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#2E1F8D
secondary
#ACBB4D
accent
#E741D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2E1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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