#2E3AA1#2E3AA1

#2E3AA1 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.165 H 271.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2E3AA1
RGBrgb(46, 58, 161)
HSLhsl(234, 56%, 41%)
HSVhsv(234, 71%, 63%)
CMYKcmyk(71.4%, 64%, 0%, 36.9%)
CIE-LABlab(29.86, 30.82, -57.18)
CIE-LCHlch(29.86, 64.96, 298.32°)
OKLaboklab(40.77% 0.0049 -0.1651)
OKLCHoklch(40.77% 0.165 271.7)
XYZxyz(9.0706, 6.1793, 34.4260)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AA1 #A1952E
analogous
#2E73A1 #2E3AA1 #5B2EA1
triadic
#2E3AA1 #A12E3A #3AA12E
tetradic
#2E3AA1 #A12E73 #A1952E #2EA15B
square
#2E3AA1 #A12E73 #A1952E #2EA15B
split-complementary
#2E3AA1 #A15B2E #73A12E
monochromatic
#131842 #202971 #2E3AA1 #4351C9 #737DD7

Accessibility & contrast

On white

9.39
#2E3AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2E3AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AA1
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AA1#FFFFFF#000000##FFFFFF
##2E3AA11.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e3aa1;
/* rgb */ color: rgb(46, 58, 161);
/* oklch */ color: oklch(40.8% 0.165 271.7);
Tailwind
colors: {
  custom: {
    50: '#7770be',
    500: '#2e3aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aa1;
$custom-light: #7770be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aa1",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 233.739,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40765,
    "c": 0.16518,
    "h": 271.7
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E3AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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