#2E5FB2#2E5FB2

#2E5FB2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.142 H 260.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2E5FB2
RGBrgb(46, 95, 178)
HSLhsl(218, 59%, 44%)
HSVhsv(218, 74%, 70%)
CMYKcmyk(74.2%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.18, 12.80, -48.97)
CIE-LCHlch(41.18, 50.61, 284.65°)
OKLaboklab(49.7% -0.0241 -0.1404)
OKLCHoklch(49.7% 0.142 260.3)
XYZxyz(13.2519, 11.9782, 43.7245)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FB2 #B2812E
analogous
#2EA1B2 #2E5FB2 #3F2EB2
triadic
#2E5FB2 #B22E5F #5FB22E
tetradic
#2E5FB2 #B22EA1 #B2812E #2EB23F
square
#2E5FB2 #B22EA1 #B2812E #2EB23F
split-complementary
#2E5FB2 #B23F2E #A1B22E
monochromatic
#152B51 #214581 #2E5FB2 #4C7ED1 #7DA1DD

Accessibility & contrast

On white

6.18
#2E5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2E5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FB2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FB2#FFFFFF#000000##FFFFFF
##2E5FB21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#145BB0
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2e5fb2;
/* rgb */ color: rgb(46, 95, 178);
/* oklch */ color: oklch(49.7% 0.142 260.3);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#2e5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fb2;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fb2",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 217.727,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.14246,
    "h": 260.3
  },
  "luminance": 0.1198
}

Semantic roles & 50–950 ramp

primary
#2E5FB2
secondary
#C6A876
accent
#A846E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2E5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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