#2E1F98#2E1F98

#2E1F98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.183 H 277.3°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2E1F98
RGBrgb(46, 31, 152)
HSLhsl(247, 66%, 36%)
HSVhsv(247, 80%, 60%)
CMYKcmyk(69.7%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.09, 43.87, -62.82)
CIE-LCHlch(23.09, 76.62, 304.93°)
OKLaboklab(35.64% 0.0231 -0.1815)
OKLCHoklch(35.64% 0.183 277.3)
XYZxyz(7.2824, 3.8272, 30.0546)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F98 #89981F
analogous
#1F4C98 #2E1F98 #6A1F98
triadic
#2E1F98 #982E1F #1F982E
tetradic
#2E1F98 #981F4C #89981F #1F986A
square
#2E1F98 #981F4C #89981F #1F986A
split-complementary
#2E1F98 #986A1F #4C981F
monochromatic
#0F0A32 #1F1565 #2E1F98 #3D29CB #6655DC

Accessibility & contrast

On white

11.89
#2E1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F98
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F98#FFFFFF#000000##FFFFFF
##2E1F981.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e1f98;
/* rgb */ color: rgb(46, 31, 152);
/* oklch */ color: oklch(35.6% 0.183 277.3);
Tailwind
colors: {
  custom: {
    50: '#775eb8',
    500: '#2e1f98',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f98;
$custom-light: #775eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f98",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 247.438,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35638,
    "c": 0.183,
    "h": 277.3
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#2E1F98
secondary
#B2C053
accent
#E93FD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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