#2E2B97#2E2B97

#2E2B97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.170 H 275.5°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2E2B97
RGBrgb(46, 43, 151)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 59%)
CMYKcmyk(69.5%, 71.5%, 0%, 40.8%)
CIE-LABlab(25.39, 36.77, -58.42)
CIE-LCHlch(25.39, 69.03, 302.19°)
OKLaboklab(37.23% 0.0164 -0.1688)
OKLCHoklch(37.23% 0.17 275.5)
XYZxyz(7.5747, 4.5423, 29.7497)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B97 #94972B
analogous
#2B5E97 #2E2B97 #642B97
triadic
#2E2B97 #972E2B #2B972E
tetradic
#2E2B97 #972B5E #94972B #2B9764
square
#2E2B97 #972B5E #94972B #2B9764
split-complementary
#2E2B97 #97642B #5E972B
monochromatic
#111038 #1F1D67 #2E2B97 #3D39C7 #6B68D4

Accessibility & contrast

On white

11.00
#2E2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2E2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B97
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B97#FFFFFF#000000##FFFFFF
##2E2B971.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e2b97;
/* rgb */ color: rgb(46, 43, 151);
/* oklch */ color: oklch(37.2% 0.170 275.5);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2e2b97',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b97;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b97",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 241.667,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37233,
    "c": 0.16958,
    "h": 275.5
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#2E2B97
secondary
#B8BB63
accent
#DF49DB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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