#2E4CAF#2E4CAF

#2E4CAF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.162 H 266.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2E4CAF
RGBrgb(46, 76, 175)
HSLhsl(226, 58%, 43%)
HSVhsv(226, 74%, 69%)
CMYKcmyk(73.7%, 56.6%, 0%, 31.4%)
CIE-LABlab(35.68, 24.15, -56.08)
CIE-LCHlch(35.68, 61.06, 293.30°)
OKLaboklab(45.45% -0.0087 -0.1617)
OKLCHoklch(45.45% 0.162 266.9)
XYZxyz(11.4463, 8.8437, 41.6529)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4CAF #AF912E
analogous
#2E8CAF #2E4CAF #512EAF
triadic
#2E4CAF #AF2E4C #4CAF2E
tetradic
#2E4CAF #AF2E8C #AF912E #2EAF51
square
#2E4CAF #AF2E8C #AF912E #2EAF51
split-complementary
#2E4CAF #AF512E #8CAF2E
monochromatic
#15224E #21377F #2E4CAF #4B6AD0 #7B92DC

Accessibility & contrast

On white

7.58
#2E4CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2E4CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4CAF
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4CAF#FFFFFF#000000##FFFFFF
##2E4CAF1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e4caf;
/* rgb */ color: rgb(46, 76, 175);
/* oklch */ color: oklch(45.5% 0.162 266.9);
Tailwind
colors: {
  custom: {
    50: '#797dc8',
    500: '#2e4caf',
    950: '#000000',
  },
}
SCSS
$custom: #2e4caf;
$custom-light: #797dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4caf",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 226.047,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4545,
    "c": 0.16189,
    "h": 266.9
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#2E4CAF
secondary
#C5B274
accent
#BD46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2E4CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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