#2E5FA4#2E5FA4

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

Color values

HEX#2E5FA4
RGBrgb(46, 95, 164)
HSLhsl(215, 56%, 41%)
HSVhsv(215, 72%, 64%)
CMYKcmyk(72%, 42.1%, 0%, 35.7%)
CIE-LABlab(40.32, 7.50, -42.08)
CIE-LCHlch(40.32, 42.74, 280.11°)
OKLaboklab(48.76% -0.0268 -0.1202)
OKLCHoklch(48.76% 0.123 257.4)
XYZxyz(11.9173, 11.4443, 36.6957)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FA4 #A4732E
analogous
#2E9AA4 #2E5FA4 #382EA4
triadic
#2E5FA4 #A42E5F #5FA42E
tetradic
#2E5FA4 #A42E9A #A4732E #2EA438
square
#2E5FA4 #A42E9A #A4732E #2EA438
split-complementary
#2E5FA4 #A4382E #9AA42E
monochromatic
#132844 #214374 #2E5FA4 #457CCB #749ED8

Accessibility & contrast

On white

6.38
#2E5FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2E5FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FA4
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FA4#FFFFFF#000000##FFFFFF
##2E5FA41.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A7
Deuteranopia (green-blind)
#2B5AA3
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5fa4;
/* rgb */ color: rgb(46, 95, 164);
/* oklch */ color: oklch(48.8% 0.123 257.4);
Tailwind
colors: {
  custom: {
    50: '#768bbf',
    500: '#2e5fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fa4;
$custom-light: #768bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fa4",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 215.085,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48756,
    "c": 0.12311,
    "h": 257.4
  },
  "luminance": 0.11446
}

Semantic roles & 50–950 ramp

primary
#2E5FA4
secondary
#C09E6E
accent
#A148DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #2E5FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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