#2E2B8B#2E2B8B

#2E2B8B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.154 H 276.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2E2B8B
RGBrgb(46, 43, 139)
HSLhsl(242, 53%, 36%)
HSVhsv(242, 69%, 55%)
CMYKcmyk(66.9%, 69.1%, 0%, 45.5%)
CIE-LABlab(24.23, 32.61, -52.90)
CIE-LCHlch(24.23, 62.14, 301.65°)
OKLaboklab(36.05% 0.0181 -0.1526)
OKLCHoklch(36.05% 0.154 276.8)
XYZxyz(6.6493, 4.1721, 24.8760)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B8B #888B2B
analogous
#2B588B #2E2B8B #5E2B8B
triadic
#2E2B8B #8B2E2B #2B8B2E
tetradic
#2E2B8B #8B2B58 #888B2B #2B8B5E
square
#2E2B8B #8B2B58 #888B2B #2B8B5E
split-complementary
#2E2B8B #8B5E2B #588B2B
monochromatic
#0F0E2E #1F1D5C #2E2B8B #3D39BA #6562CE

Accessibility & contrast

On white

11.45
#2E2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2B8B
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B8B#FFFFFF#000000##FFFFFF
##2E2B8B1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2b8b;
/* rgb */ color: rgb(46, 43, 139);
/* oklch */ color: oklch(36.0% 0.154 276.8);
Tailwind
colors: {
  custom: {
    50: '#7365ae',
    500: '#2e2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b8b;
$custom-light: #7365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b8b",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 241.875,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36048,
    "c": 0.15371,
    "h": 276.8
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#2E2B8B
secondary
#B2B55D
accent
#DC4CD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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