#2E1E98#2E1E98

#2E1E98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.184 H 277.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2E1E98
RGBrgb(46, 30, 152)
HSLhsl(248, 67%, 36%)
HSVhsv(248, 80%, 60%)
CMYKcmyk(69.7%, 80.3%, 0%, 40.4%)
CIE-LABlab(22.92, 44.37, -63.11)
CIE-LCHlch(22.92, 77.15, 305.11°)
OKLaboklab(35.52% 0.0236 -0.1824)
OKLCHoklch(35.52% 0.184 277.4)
XYZxyz(7.2566, 3.7757, 30.0460)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E98 #88981E
analogous
#1E4B98 #2E1E98 #6B1E98
triadic
#2E1E98 #982E1E #1E982E
tetradic
#2E1E98 #981E4B #88981E #1E986B
square
#2E1E98 #981E4B #88981E #1E986B
split-complementary
#2E1E98 #986B1E #4B981E
monochromatic
#0F0A32 #1F1465 #2E1E98 #3D28CB #6553DD

Accessibility & contrast

On white

11.96
#2E1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E1E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E98
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E98#FFFFFF#000000##FFFFFF
##2E1E981.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1e98;
/* rgb */ color: rgb(46, 30, 152);
/* oklch */ color: oklch(35.5% 0.184 277.4);
Tailwind
colors: {
  custom: {
    50: '#775db8',
    500: '#2e1e98',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e98;
$custom-light: #775db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e98",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 247.869,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35515,
    "c": 0.18388,
    "h": 277.4
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#2E1E98
secondary
#B2C051
accent
#EA3ED3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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