#2E2A8B#2E2A8B

#2E2A8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.155 H 277.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2E2A8B
RGBrgb(46, 42, 139)
HSLhsl(242, 54%, 35%)
HSVhsv(242, 70%, 55%)
CMYKcmyk(66.9%, 69.8%, 0%, 45.5%)
CIE-LABlab(24.00, 33.24, -53.28)
CIE-LCHlch(24.00, 62.80, 301.96°)
OKLaboklab(35.88% 0.0189 -0.1538)
OKLCHoklch(35.88% 0.155 277)
XYZxyz(6.6134, 4.1003, 24.8640)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A8B #878B2A
analogous
#2A568B #2E2A8B #5E2A8B
triadic
#2E2A8B #8B2E2A #2A8B2E
tetradic
#2E2A8B #8B2A56 #878B2A #2A8B5E
square
#2E2A8B #8B2A56 #878B2A #2A8B5E
split-complementary
#2E2A8B #8B5E2A #568B2A
monochromatic
#0F0E2D #1E1C5C #2E2A8B #3E38BA #6560CF

Accessibility & contrast

On white

11.54
#2E2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A8B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A8B#FFFFFF#000000##FFFFFF
##2E2A8B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2a8b;
/* rgb */ color: rgb(46, 42, 139);
/* oklch */ color: oklch(35.9% 0.155 277.0);
Tailwind
colors: {
  custom: {
    50: '#7364ae',
    500: '#2e2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a8b;
$custom-light: #7364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a8b",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 242.474,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3588,
    "c": 0.15492,
    "h": 277
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#2E2A8B
secondary
#B1B55C
accent
#DD4BD7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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