#2E2B8A#2E2B8A

#2E2B8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.152 H 276.9°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2E2B8A
RGBrgb(46, 43, 138)
HSLhsl(242, 52%, 35%)
HSVhsv(242, 69%, 54%)
CMYKcmyk(66.7%, 68.8%, 0%, 45.9%)
CIE-LABlab(24.14, 32.26, -52.43)
CIE-LCHlch(24.14, 61.56, 301.60°)
OKLaboklab(35.95% 0.0183 -0.1513)
OKLCHoklch(35.95% 0.152 276.9)
XYZxyz(6.5765, 4.1430, 24.4929)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B8A #878A2B
analogous
#2B578A #2E2B8A #5D2B8A
triadic
#2E2B8A #8A2E2B #2B8A2E
tetradic
#2E2B8A #8A2B57 #878A2B #2B8A5D
square
#2E2B8A #8A2B57 #878A2B #2B8A5D
split-complementary
#2E2B8A #8A5D2B #578A2B
monochromatic
#0F0E2D #1E1C5B #2E2B8A #3E3AB9 #6561CE

Accessibility & contrast

On white

11.48
#2E2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2E2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B8A
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B8A#FFFFFF#000000##FFFFFF
##2E2B8A1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2b8a;
/* rgb */ color: rgb(46, 43, 138);
/* oklch */ color: oklch(36.0% 0.152 276.9);
Tailwind
colors: {
  custom: {
    50: '#7365ad',
    500: '#2e2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b8a;
$custom-light: #7365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b8a",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 241.895,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35951,
    "c": 0.15237,
    "h": 276.9
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#2E2B8A
secondary
#B1B45D
accent
#DC4CD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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