#2E2A8A#2E2A8A

#2E2A8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.154 H 277.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2E2A8A
RGBrgb(46, 42, 138)
HSLhsl(243, 53%, 35%)
HSVhsv(243, 70%, 54%)
CMYKcmyk(66.7%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.91, 32.89, -52.81)
CIE-LCHlch(23.91, 62.22, 301.91°)
OKLaboklab(35.78% 0.019 -0.1524)
OKLCHoklch(35.78% 0.154 277.1)
XYZxyz(6.5406, 4.0712, 24.4810)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A8A #868A2A
analogous
#2A568A #2E2A8A #5E2A8A
triadic
#2E2A8A #8A2E2A #2A8A2E
tetradic
#2E2A8A #8A2A56 #868A2A #2A8A5E
square
#2E2A8A #8A2A56 #868A2A #2A8A5E
split-complementary
#2E2A8A #8A5E2A #568A2A
monochromatic
#0F0D2C #1E1C5B #2E2A8A #3E38B9 #6460CF

Accessibility & contrast

On white

11.57
#2E2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2A8A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A8A#FFFFFF#000000##FFFFFF
##2E2A8A1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2a8a;
/* rgb */ color: rgb(46, 42, 138);
/* oklch */ color: oklch(35.8% 0.154 277.1);
Tailwind
colors: {
  custom: {
    50: '#7364ad',
    500: '#2e2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a8a;
$custom-light: #7364ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a8a",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 242.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35782,
    "c": 0.15357,
    "h": 277.1
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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