#2E3AA0#2E3AA0

#2E3AA0 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.164 H 271.7°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2E3AA0
RGBrgb(46, 58, 160)
HSLhsl(234, 55%, 40%)
HSVhsv(234, 71%, 63%)
CMYKcmyk(71.2%, 63.8%, 0%, 37.3%)
CIE-LABlab(29.77, 30.45, -56.72)
CIE-LCHlch(29.77, 64.38, 298.23°)
OKLaboklab(40.67% 0.0049 -0.1638)
OKLCHoklch(40.67% 0.164 271.7)
XYZxyz(8.9828, 6.1441, 33.9634)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AA0 #A0942E
analogous
#2E73A0 #2E3AA0 #5B2EA0
triadic
#2E3AA0 #A02E3A #3AA02E
tetradic
#2E3AA0 #A02E73 #A0942E #2EA05B
square
#2E3AA0 #A02E73 #A0942E #2EA05B
split-complementary
#2E3AA0 #A05B2E #73A02E
monochromatic
#131841 #202970 #2E3AA0 #4251C9 #727DD6

Accessibility & contrast

On white

9.42
#2E3AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2E3AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AA0
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AA0#FFFFFF#000000##FFFFFF
##2E3AA01.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e3aa0;
/* rgb */ color: rgb(46, 58, 160);
/* oklch */ color: oklch(40.7% 0.164 271.7);
Tailwind
colors: {
  custom: {
    50: '#7770bd',
    500: '#2e3aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aa0;
$custom-light: #7770bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aa0",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 160
  },
  "hsl": {
    "h": 233.684,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40674,
    "c": 0.16383,
    "h": 271.7
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#2E3AA0
secondary
#BEB56C
accent
#CF49DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E3AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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