#2E4DAF#2E4DAF

#2E4DAF is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.161 H 266.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2E4DAF
RGBrgb(46, 77, 175)
HSLhsl(226, 58%, 43%)
HSVhsv(226, 74%, 69%)
CMYKcmyk(73.7%, 56%, 0%, 31.4%)
CIE-LABlab(35.95, 23.49, -55.64)
CIE-LCHlch(35.95, 60.40, 292.89°)
OKLaboklab(45.65% -0.0095 -0.1604)
OKLCHoklch(45.65% 0.161 266.6)
XYZxyz(11.5158, 8.9825, 41.6760)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4DAF #AF902E
analogous
#2E8DAF #2E4DAF #4F2EAF
triadic
#2E4DAF #AF2E4D #4DAF2E
tetradic
#2E4DAF #AF2E8D #AF902E #2EAF4F
square
#2E4DAF #AF2E8D #AF902E #2EAF4F
split-complementary
#2E4DAF #AF4F2E #8DAF2E
monochromatic
#15224E #21387F #2E4DAF #4B6BD0 #7B92DC

Accessibility & contrast

On white

7.51
#2E4DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4DAF
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4DAF#FFFFFF#000000##FFFFFF
##2E4DAF1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2e4daf;
/* rgb */ color: rgb(46, 77, 175);
/* oklch */ color: oklch(45.7% 0.161 266.6);
Tailwind
colors: {
  custom: {
    50: '#797ec8',
    500: '#2e4daf',
    950: '#000000',
  },
}
SCSS
$custom: #2e4daf;
$custom-light: #797ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4daf",
  "rgb": {
    "r": 46,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 225.581,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45652,
    "c": 0.16064,
    "h": 266.6
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#2E4DAF
secondary
#C5B174
accent
#BC46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2E4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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