#2E5FA5#2E5FA5

#2E5FA5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.8% C 0.124 H 257.7°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2E5FA5
RGBrgb(46, 95, 165)
HSLhsl(215, 56%, 41%)
HSVhsv(215, 72%, 65%)
CMYKcmyk(72.1%, 42.4%, 0%, 35.3%)
CIE-LABlab(40.38, 7.88, -42.58)
CIE-LCHlch(40.38, 43.30, 280.48°)
OKLaboklab(48.82% -0.0266 -0.1216)
OKLCHoklch(48.82% 0.125 257.7)
XYZxyz(12.0080, 11.4806, 37.1731)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FA5 #A5742E
analogous
#2E9BA5 #2E5FA5 #392EA5
triadic
#2E5FA5 #A52E5F #5FA52E
tetradic
#2E5FA5 #A52E9B #A5742E #2EA539
square
#2E5FA5 #A52E9B #A5742E #2EA539
split-complementary
#2E5FA5 #A5392E #9BA52E
monochromatic
#132845 #214375 #2E5FA5 #457CCB #759ED8

Accessibility & contrast

On white

6.37
#2E5FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2E5FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FA5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FA5#FFFFFF#000000##FFFFFF
##2E5FA51.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A8
Deuteranopia (green-blind)
#2A5AA4
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5fa5;
/* rgb */ color: rgb(46, 95, 165);
/* oklch */ color: oklch(48.8% 0.124 257.7);
Tailwind
colors: {
  custom: {
    50: '#768bc0',
    500: '#2e5fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fa5;
$custom-light: #768bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fa5",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 215.294,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.1245,
    "h": 257.7
  },
  "luminance": 0.11482
}

Semantic roles & 50–950 ramp

primary
#2E5FA5
secondary
#C09F6F
accent
#A148E0
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2E5FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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