#2E2A91#2E2A91

#2E2A91 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.163 H 276.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2E2A91
RGBrgb(46, 42, 145)
HSLhsl(242, 55%, 37%)
HSVhsv(242, 71%, 57%)
CMYKcmyk(68.3%, 71%, 0%, 43.1%)
CIE-LABlab(24.58, 35.31, -56.05)
CIE-LCHlch(24.58, 66.25, 302.21°)
OKLaboklab(36.47% 0.018 -0.1619)
OKLCHoklch(36.47% 0.163 276.3)
XYZxyz(7.0638, 4.2805, 27.2365)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A91 #8D912A
analogous
#2A5A91 #2E2A91 #622A91
triadic
#2E2A91 #912E2A #2A912E
tetradic
#2E2A91 #912A5A #8D912A #2A9162
square
#2E2A91 #912A5A #8D912A #2A9162
split-complementary
#2E2A91 #91622A #5A912A
monochromatic
#100F32 #1F1C62 #2E2A91 #3D38C0 #6863D2

Accessibility & contrast

On white

11.31
#2E2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A91
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A91#FFFFFF#000000##FFFFFF
##2E2A911.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2a91;
/* rgb */ color: rgb(46, 42, 145);
/* oklch */ color: oklch(36.5% 0.163 276.3);
Tailwind
colors: {
  custom: {
    50: '#7564b2',
    500: '#2e2a91',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a91;
$custom-light: #7564b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a91",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 242.33,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36472,
    "c": 0.16288,
    "h": 276.3
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#2E2A91
secondary
#B5B85F
accent
#DE49D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2E2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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