#2E1F8F#2E1F8F

#2E1F8F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.172 H 278.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2E1F8F
RGBrgb(46, 31, 143)
HSLhsl(248, 64%, 34%)
HSVhsv(248, 78%, 56%)
CMYKcmyk(67.8%, 78.3%, 0%, 43.9%)
CIE-LABlab(22.10, 41.01, -58.89)
CIE-LCHlch(22.10, 71.76, 304.85°)
OKLaboklab(34.65% 0.0255 -0.1701)
OKLCHoklch(34.65% 0.172 278.5)
XYZxyz(6.5730, 3.5434, 26.3188)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F8F #808F1F
analogous
#1F488F #2E1F8F #661F8F
triadic
#2E1F8F #8F2E1F #1F8F2E
tetradic
#2E1F8F #8F1F48 #808F1F #1F8F66
square
#2E1F8F #8F1F48 #808F1F #1F8F66
split-complementary
#2E1F8F #8F661F #488F1F
monochromatic
#0E092A #1E145D #2E1F8F #3E2AC1 #624FD9

Accessibility & contrast

On white

12.29
#2E1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F8F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F8F#FFFFFF#000000##FFFFFF
##2E1F8F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1f8f;
/* rgb */ color: rgb(46, 31, 143);
/* oklch */ color: oklch(34.7% 0.172 278.5);
Tailwind
colors: {
  custom: {
    50: '#755db1',
    500: '#2e1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f8f;
$custom-light: #755db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f8f",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 248.036,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34651,
    "c": 0.172,
    "h": 278.5
  },
  "luminance": 0.03544
}

Semantic roles & 50–950 ramp

primary
#2E1F8F
secondary
#ADBC4E
accent
#E740D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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