#2E5FA7#2E5FA7

#2E5FA7 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.127 H 258.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2E5FA7
RGBrgb(46, 95, 167)
HSLhsl(216, 57%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(72.5%, 43.1%, 0%, 34.5%)
CIE-LABlab(40.50, 8.63, -43.57)
CIE-LCHlch(40.50, 44.42, 281.21°)
OKLaboklab(48.95% -0.0262 -0.1245)
OKLCHoklch(48.95% 0.127 258.1)
XYZxyz(12.1914, 11.5540, 38.1393)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FA7 #A7762E
analogous
#2E9CA7 #2E5FA7 #392EA7
triadic
#2E5FA7 #A72E5F #5FA72E
tetradic
#2E5FA7 #A72E9C #A7762E #2EA739
square
#2E5FA7 #A72E9C #A7762E #2EA739
split-complementary
#2E5FA7 #A7392E #9CA72E
monochromatic
#142847 #214477 #2E5FA7 #467CCC #769ED9

Accessibility & contrast

On white

6.34
#2E5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2E5FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FA7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FA7#FFFFFF#000000##FFFFFF
##2E5FA71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65AA
Deuteranopia (green-blind)
#275AA6
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5fa7;
/* rgb */ color: rgb(46, 95, 167);
/* oklch */ color: oklch(49.0% 0.127 258.1);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2e5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fa7;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fa7",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 215.702,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48953,
    "c": 0.12727,
    "h": 258.1
  },
  "luminance": 0.11555
}

Semantic roles & 50–950 ramp

primary
#2E5FA7
secondary
#C1A070
accent
#A248E0
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2E5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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