#2E1F8B#2E1F8B

#2E1F8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.167 H 279.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2E1F8B
RGBrgb(46, 31, 139)
HSLhsl(248, 64%, 33%)
HSVhsv(248, 78%, 55%)
CMYKcmyk(66.9%, 77.7%, 0%, 45.5%)
CIE-LABlab(21.67, 39.72, -57.11)
CIE-LCHlch(21.67, 69.57, 304.82°)
OKLaboklab(34.22% 0.0266 -0.1649)
OKLCHoklch(34.22% 0.167 279.1)
XYZxyz(6.2754, 3.4244, 24.7514)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F8B #7C8B1F
analogous
#1F468B #2E1F8B #641F8B
triadic
#2E1F8B #8B2E1F #1F8B2E
tetradic
#2E1F8B #8B1F46 #7C8B1F #1F8B64
square
#2E1F8B #8B1F46 #7C8B1F #1F8B64
split-complementary
#2E1F8B #8B641F #468B1F
monochromatic
#0D0927 #1D1459 #2E1F8B #3F2ABD #604DD7

Accessibility & contrast

On white

12.46
#2E1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F8B
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F8B#FFFFFF#000000##FFFFFF
##2E1F8B1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1f8b;
/* rgb */ color: rgb(46, 31, 139);
/* oklch */ color: oklch(34.2% 0.167 279.1);
Tailwind
colors: {
  custom: {
    50: '#745dae',
    500: '#2e1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f8b;
$custom-light: #745dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f8b",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 248.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34219,
    "c": 0.16704,
    "h": 279.1
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#2E1F8B
secondary
#ABBA4C
accent
#E741D0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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