#2E5EA8#2E5EA8

#2E5EA8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.130 H 258.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#2E5EA8
RGBrgb(46, 94, 168)
HSLhsl(216, 57%, 42%)
HSVhsv(216, 73%, 66%)
CMYKcmyk(72.6%, 44%, 0%, 34.1%)
CIE-LABlab(40.27, 9.66, -44.54)
CIE-LCHlch(40.27, 45.57, 282.23°)
OKLaboklab(48.79% -0.025 -0.1274)
OKLCHoklch(48.79% 0.13 258.9)
XYZxyz(12.1947, 11.4121, 38.5983)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5EA8 #A8782E
analogous
#2E9BA8 #2E5EA8 #3B2EA8
triadic
#2E5EA8 #A82E5E #5EA82E
tetradic
#2E5EA8 #A82E9B #A8782E #2EA83B
square
#2E5EA8 #A82E9B #A8782E #2EA83B
split-complementary
#2E5EA8 #A83B2E #9BA82E
monochromatic
#142848 #214378 #2E5EA8 #477BCD #779EDA

Accessibility & contrast

On white

6.40
#2E5EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2E5EA8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5EA8#FFFFFF#000000##FFFFFF
##2E5EA81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#235AA6
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5ea8;
/* rgb */ color: rgb(46, 94, 168);
/* oklch */ color: oklch(48.8% 0.130 258.9);
Tailwind
colors: {
  custom: {
    50: '#768bc2',
    500: '#2e5ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2e5ea8;
$custom-light: #768bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5ea8",
  "rgb": {
    "r": 46,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 216.393,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48793,
    "c": 0.12984,
    "h": 258.9
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#2E5EA8
secondary
#C2A270
accent
#A448E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2E5EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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