#2E5FB4#2E5FB4

#2E5FB4 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.8% C 0.145 H 260.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#2E5FB4
RGBrgb(46, 95, 180)
HSLhsl(218, 59%, 44%)
HSVhsv(218, 74%, 71%)
CMYKcmyk(74.4%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.31, 13.56, -49.93)
CIE-LCHlch(41.31, 51.74, 285.19°)
OKLaboklab(49.84% -0.0238 -0.1432)
OKLCHoklch(49.84% 0.145 260.6)
XYZxyz(13.4542, 12.0591, 44.7897)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FB4 #B4832E
analogous
#2EA2B4 #2E5FB4 #402EB4
triadic
#2E5FB4 #B42E5F #5FB42E
tetradic
#2E5FB4 #B42EA2 #B4832E #2EB440
square
#2E5FB4 #B42EA2 #B4832E #2EB440
split-complementary
#2E5FB4 #B4402E #A2B42E
monochromatic
#152C53 #224583 #2E5FB4 #4E7ED2 #7EA1DE

Accessibility & contrast

On white

6.15
#2E5FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2E5FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FB4
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FB4#FFFFFF#000000##FFFFFF
##2E5FB41.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B7
Deuteranopia (green-blind)
#0E5CB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2e5fb4;
/* rgb */ color: rgb(46, 95, 180);
/* oklch */ color: oklch(49.8% 0.145 260.6);
Tailwind
colors: {
  custom: {
    50: '#798bcb',
    500: '#2e5fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fb4;
$custom-light: #798bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fb4",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 218.06,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49841,
    "c": 0.14521,
    "h": 260.6
  },
  "luminance": 0.12061
}

Semantic roles & 50–950 ramp

primary
#2E5FB4
secondary
#C7AA77
accent
#A945E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2E5FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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