#2E2A8D#2E2A8D

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

Color values

HEX#2E2A8D
RGBrgb(46, 42, 141)
HSLhsl(242, 54%, 36%)
HSVhsv(242, 70%, 55%)
CMYKcmyk(67.4%, 70.2%, 0%, 44.7%)
CIE-LABlab(24.19, 33.93, -54.21)
CIE-LCHlch(24.19, 63.95, 302.04°)
OKLaboklab(36.08% 0.0186 -0.1565)
OKLCHoklch(36.08% 0.158 276.8)
XYZxyz(6.7608, 4.1593, 25.6407)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A8D #898D2A
analogous
#2A578D #2E2A8D #5F2A8D
triadic
#2E2A8D #8D2E2A #2A8D2E
tetradic
#2E2A8D #8D2A57 #898D2A #2A8D5F
square
#2E2A8D #8D2A57 #898D2A #2A8D5F
split-complementary
#2E2A8D #8D5F2A #578D2A
monochromatic
#0F0E2F #1F1C5E #2E2A8D #3D38BC #6661D0

Accessibility & contrast

On white

11.46
#2E2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2A8D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A8D#FFFFFF#000000##FFFFFF
##2E2A8D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2a8d;
/* rgb */ color: rgb(46, 42, 141);
/* oklch */ color: oklch(36.1% 0.158 276.8);
Tailwind
colors: {
  custom: {
    50: '#7464af',
    500: '#2e2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a8d;
$custom-light: #7464af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a8d",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 242.424,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36076,
    "c": 0.15758,
    "h": 276.8
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#2E2A8D
secondary
#B2B65D
accent
#DD4AD8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2E2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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