#2E5EA7#2E5EA7

#2E5EA7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.7% C 0.128 H 258.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#2E5EA7
RGBrgb(46, 94, 167)
HSLhsl(216, 57%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(72.5%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.20, 9.28, -44.04)
CIE-LCHlch(40.20, 45.01, 281.90°)
OKLaboklab(48.73% -0.0252 -0.1259)
OKLCHoklch(48.73% 0.128 258.7)
XYZxyz(12.1019, 11.3750, 38.1095)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5EA7 #A7772E
analogous
#2E9BA7 #2E5EA7 #3A2EA7
triadic
#2E5EA7 #A72E5E #5EA72E
tetradic
#2E5EA7 #A72E9B #A7772E #2EA73A
square
#2E5EA7 #A72E9B #A7772E #2EA73A
split-complementary
#2E5EA7 #A73A2E #9BA72E
monochromatic
#142847 #214377 #2E5EA7 #467BCC #769DD9

Accessibility & contrast

On white

6.41
#2E5EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2E5EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5EA7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5EA7#FFFFFF#000000##FFFFFF
##2E5EA71.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AA
Deuteranopia (green-blind)
#255AA6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5ea7;
/* rgb */ color: rgb(46, 94, 167);
/* oklch */ color: oklch(48.7% 0.128 258.7);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2e5ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2e5ea7;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5ea7",
  "rgb": {
    "r": 46,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 216.198,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48726,
    "c": 0.12844,
    "h": 258.7
  },
  "luminance": 0.11376
}

Semantic roles & 50–950 ramp

primary
#2E5EA7
secondary
#C1A170
accent
#A448E0
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2E5EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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