#2E5AA1#2E5AA1

#2E5AA1 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.4% C 0.125 H 259.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2E5AA1
RGBrgb(46, 90, 161)
HSLhsl(217, 56%, 41%)
HSVhsv(217, 71%, 63%)
CMYKcmyk(71.4%, 44.1%, 0%, 36.9%)
CIE-LABlab(38.66, 9.61, -42.94)
CIE-LCHlch(38.66, 44.00, 282.61°)
OKLaboklab(47.42% -0.0226 -0.1228)
OKLCHoklch(47.42% 0.125 259.6)
XYZxyz(11.2136, 10.4652, 35.1403)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5AA1 #A1752E
analogous
#2E94A1 #2E5AA1 #3B2EA1
triadic
#2E5AA1 #A12E5A #5AA12E
tetradic
#2E5AA1 #A12E94 #A1752E #2EA13B
square
#2E5AA1 #A12E94 #A1752E #2EA13B
split-complementary
#2E5AA1 #A13B2E #94A12E
monochromatic
#132542 #203F71 #2E5AA1 #4376C9 #7399D7

Accessibility & contrast

On white

6.79
#2E5AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2E5AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5AA1
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5AA1#FFFFFF#000000##FFFFFF
##2E5AA11.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A4
Deuteranopia (green-blind)
#2356A0
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e5aa1;
/* rgb */ color: rgb(46, 90, 161);
/* oklch */ color: oklch(47.4% 0.125 259.6);
Tailwind
colors: {
  custom: {
    50: '#7588bd',
    500: '#2e5aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2e5aa1;
$custom-light: #7588bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5aa1",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 161
  },
  "hsl": {
    "h": 217.043,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47417,
    "c": 0.12483,
    "h": 259.6
  },
  "luminance": 0.10466
}

Semantic roles & 50–950 ramp

primary
#2E5AA1
secondary
#BE9F6C
accent
#A649DF
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2E5AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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