#2E1F89#2E1F89

#2E1F89 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.165 H 279.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1F89
RGBrgb(46, 31, 137)
HSLhsl(248, 63%, 33%)
HSVhsv(248, 77%, 54%)
CMYKcmyk(66.4%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.46, 39.07, -56.22)
CIE-LCHlch(21.46, 68.46, 304.80°)
OKLaboklab(34.01% 0.0271 -0.1623)
OKLCHoklch(34.01% 0.165 279.5)
XYZxyz(6.1306, 3.3665, 23.9888)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F89 #7A891F
analogous
#1F4589 #2E1F89 #631F89
triadic
#2E1F89 #892E1F #1F892E
tetradic
#2E1F89 #891F45 #7A891F #1F8963
square
#2E1F89 #891F45 #7A891F #1F8963
split-complementary
#2E1F89 #89631F #45891F
monochromatic
#0C0825 #1D1457 #2E1F89 #3F2ABB #604CD6

Accessibility & contrast

On white

12.55
#2E1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F89
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F89#FFFFFF#000000##FFFFFF
##2E1F891.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1f89;
/* rgb */ color: rgb(46, 31, 137);
/* oklch */ color: oklch(34.0% 0.165 279.5);
Tailwind
colors: {
  custom: {
    50: '#745dad',
    500: '#2e1f89',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f89;
$custom-light: #745dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f89",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 248.491,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34005,
    "c": 0.16453,
    "h": 279.5
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#2E1F89
secondary
#AAB94B
accent
#E642CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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