#2E1B98#2E1B98

#2E1B98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.186 H 277.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2E1B98
RGBrgb(46, 27, 152)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(69.7%, 82.2%, 0%, 40.4%)
CIE-LABlab(22.41, 45.84, -63.95)
CIE-LCHlch(22.41, 78.68, 305.63°)
OKLaboklab(35.17% 0.025 -0.1847)
OKLCHoklch(35.17% 0.186 277.7)
XYZxyz(7.1843, 3.6311, 30.0219)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B98 #85981B
analogous
#1B4798 #2E1B98 #6C1B98
triadic
#2E1B98 #982E1B #1B982E
tetradic
#2E1B98 #981B47 #85981B #1B986C
square
#2E1B98 #981B47 #85981B #1B986C
split-complementary
#2E1B98 #986C1B #47981B
monochromatic
#0F0930 #1E1264 #2E1B98 #3E24CC #644EE0

Accessibility & contrast

On white

12.16
#2E1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B98
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B98#FFFFFF#000000##FFFFFF
##2E1B981.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1b98;
/* rgb */ color: rgb(46, 27, 152);
/* oklch */ color: oklch(35.2% 0.186 277.7);
Tailwind
colors: {
  custom: {
    50: '#785cb8',
    500: '#2e1b98',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b98;
$custom-light: #785cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b98",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 249.12,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35165,
    "c": 0.18643,
    "h": 277.7
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#2E1B98
secondary
#B0C24D
accent
#ED3BD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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