#2E2B98#2E2B98

#2E2B98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.171 H 275.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2E2B98
RGBrgb(46, 43, 152)
HSLhsl(242, 56%, 38%)
HSVhsv(242, 72%, 60%)
CMYKcmyk(69.7%, 71.7%, 0%, 40.4%)
CIE-LABlab(25.49, 37.11, -58.87)
CIE-LCHlch(25.49, 69.59, 302.23°)
OKLaboklab(37.33% 0.0162 -0.1701)
OKLCHoklch(37.33% 0.171 275.4)
XYZxyz(7.6562, 4.5749, 30.1792)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B98 #95982B
analogous
#2B5E98 #2E2B98 #642B98
triadic
#2E2B98 #982E2B #2B982E
tetradic
#2E2B98 #982B5E #95982B #2B9864
square
#2E2B98 #982B5E #95982B #2B9864
split-complementary
#2E2B98 #98642B #5E982B
monochromatic
#111039 #201E68 #2E2B98 #3D39C7 #6C69D5

Accessibility & contrast

On white

10.96
#2E2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B98
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B98#FFFFFF#000000##FFFFFF
##2E2B981.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2b98;
/* rgb */ color: rgb(46, 43, 152);
/* oklch */ color: oklch(37.3% 0.171 275.4);
Tailwind
colors: {
  custom: {
    50: '#7665b7',
    500: '#2e2b98',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b98;
$custom-light: #7665b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b98",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 241.651,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37333,
    "c": 0.17088,
    "h": 275.4
  },
  "luminance": 0.04576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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