#2E4FA8#2E4FA8

#2E4FA8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.148 H 265.5°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#2E4FA8
RGBrgb(46, 79, 168)
HSLhsl(224, 57%, 42%)
HSVhsv(224, 73%, 66%)
CMYKcmyk(72.6%, 53%, 0%, 34.1%)
CIE-LABlab(35.98, 19.51, -51.43)
CIE-LCHlch(35.98, 55.01, 290.78°)
OKLaboklab(45.51% -0.0116 -0.1479)
OKLCHoklch(45.51% 0.148 265.5)
XYZxyz(10.9881, 8.9988, 38.1960)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4FA8 #A8872E
analogous
#2E8CA8 #2E4FA8 #4A2EA8
triadic
#2E4FA8 #A82E4F #4FA82E
tetradic
#2E4FA8 #A82E8C #A8872E #2EA84A
square
#2E4FA8 #A82E8C #A8872E #2EA84A
split-complementary
#2E4FA8 #A84A2E #8CA82E
monochromatic
#142248 #213878 #2E4FA8 #476BCD #7791DA

Accessibility & contrast

On white

7.50
#2E4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2E4FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4FA8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4FA8#FFFFFF#000000##FFFFFF
##2E4FA81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125BAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2e4fa8;
/* rgb */ color: rgb(46, 79, 168);
/* oklch */ color: oklch(45.5% 0.148 265.5);
Tailwind
colors: {
  custom: {
    50: '#777fc2',
    500: '#2e4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2e4fa8;
$custom-light: #777fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4fa8",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 223.77,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45513,
    "c": 0.1484,
    "h": 265.5
  },
  "luminance": 0.09
}

Semantic roles & 50–950 ramp

primary
#2E4FA8
secondary
#C2AC70
accent
#B748E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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