#2E4AAF#2E4AAF

#2E4AAF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.164 H 267.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2E4AAF
RGBrgb(46, 74, 175)
HSLhsl(227, 58%, 43%)
HSVhsv(227, 74%, 69%)
CMYKcmyk(73.7%, 57.7%, 0%, 31.4%)
CIE-LABlab(35.15, 25.47, -56.95)
CIE-LCHlch(35.15, 62.39, 294.10°)
OKLaboklab(45.05% -0.0071 -0.1642)
OKLCHoklch(45.05% 0.164 267.5)
XYZxyz(11.3107, 8.5723, 41.6077)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4AAF #AF932E
analogous
#2E8AAF #2E4AAF #522EAF
triadic
#2E4AAF #AF2E4A #4AAF2E
tetradic
#2E4AAF #AF2E8A #AF932E #2EAF52
square
#2E4AAF #AF2E8A #AF932E #2EAF52
split-complementary
#2E4AAF #AF522E #8AAF2E
monochromatic
#15214E #21367F #2E4AAF #4B67D0 #7B90DC

Accessibility & contrast

On white

7.74
#2E4AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2E4AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4AAF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4AAF#FFFFFF#000000##FFFFFF
##2E4AAF1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2e4aaf;
/* rgb */ color: rgb(46, 74, 175);
/* oklch */ color: oklch(45.0% 0.164 267.5);
Tailwind
colors: {
  custom: {
    50: '#797cc8',
    500: '#2e4aaf',
    950: '#000000',
  },
}
SCSS
$custom: #2e4aaf;
$custom-light: #797cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4aaf",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 226.977,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45049,
    "c": 0.16441,
    "h": 267.5
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#2E4AAF
secondary
#C5B374
accent
#C046E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2E4AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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