#2E4E84#2E4E84

#2E4E84 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.098 H 260.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#2E4E84
RGBrgb(46, 78, 132)
HSLhsl(218, 48%, 35%)
HSVhsv(218, 65%, 52%)
CMYKcmyk(65.2%, 40.9%, 0%, 48.2%)
CIE-LABlab(33.34, 6.59, -33.85)
CIE-LCHlch(33.34, 34.49, 281.01°)
OKLaboklab(42.73% -0.0165 -0.0963)
OKLCHoklch(42.73% 0.098 260.3)
XYZxyz(8.0145, 7.6948, 22.8882)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4E84 #84642E
analogous
#2E7984 #2E4E84 #392E84
triadic
#2E4E84 #842E4E #4E842E
tetradic
#2E4E84 #842E79 #84642E #2E8439
square
#2E4E84 #842E79 #84642E #2E8439
split-complementary
#2E4E84 #84392E #79842E
monochromatic
#0E1829 #1E3357 #2E4E84 #3E69B1 #6489C9

Accessibility & contrast

On white

8.27
#2E4E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2E4E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4E84
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4E84#FFFFFF#000000##FFFFFF
##2E4E841.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365386
Deuteranopia (green-blind)
#2A4B83
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e4e84;
/* rgb */ color: rgb(46, 78, 132);
/* oklch */ color: oklch(42.7% 0.098 260.3);
Tailwind
colors: {
  custom: {
    50: '#707fa8',
    500: '#2e4e84',
    950: '#000000',
  },
}
SCSS
$custom: #2e4e84;
$custom-light: #707fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4e84",
  "rgb": {
    "r": 46,
    "g": 78,
    "b": 132
  },
  "hsl": {
    "h": 217.674,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.09769,
    "h": 260.3
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#2E4E84
secondary
#B0915E
accent
#A550D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2E4E84

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

Preview Lab → · Contrast checker → · Palette generator →

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