#2E3AA4#2E3AA4

#2E3AA4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.169 H 271.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2E3AA4
RGBrgb(46, 58, 164)
HSLhsl(234, 56%, 41%)
HSVhsv(234, 72%, 64%)
CMYKcmyk(72%, 64.6%, 0%, 35.7%)
CIE-LABlab(30.12, 31.91, -58.56)
CIE-LCHlch(30.12, 66.69, 298.58°)
OKLaboklab(41.04% 0.0047 -0.1692)
OKLCHoklch(41.04% 0.169 271.6)
XYZxyz(9.3383, 6.2864, 35.8360)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AA4 #A4982E
analogous
#2E75A4 #2E3AA4 #5D2EA4
triadic
#2E3AA4 #A42E3A #3AA42E
tetradic
#2E3AA4 #A42E75 #A4982E #2EA45D
square
#2E3AA4 #A42E75 #A4982E #2EA45D
split-complementary
#2E3AA4 #A45D2E #75A42E
monochromatic
#131844 #212974 #2E3AA4 #4552CB #747ED8

Accessibility & contrast

On white

9.30
#2E3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2E3AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AA4
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AA4#FFFFFF#000000##FFFFFF
##2E3AA41.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e3aa4;
/* rgb */ color: rgb(46, 58, 164);
/* oklch */ color: oklch(41.0% 0.169 271.6);
Tailwind
colors: {
  custom: {
    50: '#7870c0',
    500: '#2e3aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aa4;
$custom-light: #7870c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aa4",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 233.898,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4104,
    "c": 0.16923,
    "h": 271.6
  },
  "luminance": 0.06287
}

Semantic roles & 50–950 ramp

primary
#2E3AA4
secondary
#C0B86E
accent
#D048DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E3AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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