#2E5FA8#2E5FA8

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

Color values

HEX#2E5FA8
RGBrgb(46, 95, 168)
HSLhsl(216, 57%, 42%)
HSVhsv(216, 73%, 66%)
CMYKcmyk(72.6%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.56, 9.01, -44.07)
CIE-LCHlch(40.56, 44.98, 281.56°)
OKLaboklab(49.02% -0.026 -0.126)
OKLCHoklch(49.02% 0.129 258.4)
XYZxyz(12.2842, 11.5911, 38.6281)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FA8 #A8772E
analogous
#2E9CA8 #2E5FA8 #3A2EA8
triadic
#2E5FA8 #A82E5F #5FA82E
tetradic
#2E5FA8 #A82E9C #A8772E #2EA83A
square
#2E5FA8 #A82E9C #A8772E #2EA83A
split-complementary
#2E5FA8 #A83A2E #9CA82E
monochromatic
#142948 #214478 #2E5FA8 #477CCD #779EDA

Accessibility & contrast

On white

6.33
#2E5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2E5FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FA8
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FA8#FFFFFF#000000##FFFFFF
##2E5FA81.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AB
Deuteranopia (green-blind)
#265AA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2e5fa8;
/* rgb */ color: rgb(46, 95, 168);
/* oklch */ color: oklch(49.0% 0.129 258.4);
Tailwind
colors: {
  custom: {
    50: '#768bc2',
    500: '#2e5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fa8;
$custom-light: #768bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fa8",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 215.902,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4902,
    "c": 0.12865,
    "h": 258.4
  },
  "luminance": 0.11592
}

Semantic roles & 50–950 ramp

primary
#2E5FA8
secondary
#C2A170
accent
#A348E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2E5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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