#2E5FA6#2E5FA6

#2E5FA6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.126 H 257.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#2E5FA6
RGBrgb(46, 95, 166)
HSLhsl(216, 57%, 42%)
HSVhsv(216, 72%, 65%)
CMYKcmyk(72.3%, 42.8%, 0%, 34.9%)
CIE-LABlab(40.44, 8.26, -43.08)
CIE-LCHlch(40.44, 43.86, 280.85°)
OKLaboklab(48.89% -0.0264 -0.1231)
OKLCHoklch(48.89% 0.126 257.9)
XYZxyz(12.0994, 11.5171, 37.6544)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FA6 #A6752E
analogous
#2E9BA6 #2E5FA6 #392EA6
triadic
#2E5FA6 #A62E5F #5FA62E
tetradic
#2E5FA6 #A62E9B #A6752E #2EA639
square
#2E5FA6 #A62E9B #A6752E #2EA639
split-complementary
#2E5FA6 #A6392E #9BA62E
monochromatic
#132846 #214476 #2E5FA6 #467CCC #769ED9

Accessibility & contrast

On white

6.36
#2E5FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2E5FA6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FA6#FFFFFF#000000##FFFFFF
##2E5FA61.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D65A9
Deuteranopia (green-blind)
#285AA5
Tritanopia (blue-blind)
#00707A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5fa6;
/* rgb */ color: rgb(46, 95, 166);
/* oklch */ color: oklch(48.9% 0.126 257.9);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2e5fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fa6;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fa6",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 215.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48887,
    "c": 0.12589,
    "h": 257.9
  },
  "luminance": 0.11518
}

Semantic roles & 50–950 ramp

primary
#2E5FA6
secondary
#C19F6F
accent
#A248E0
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2E5FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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