#2E4F84#2E4F84

#2E4F84 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.0% C 0.096 H 259.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2E4F84
RGBrgb(46, 79, 132)
HSLhsl(217, 48%, 35%)
HSVhsv(217, 65%, 52%)
CMYKcmyk(65.2%, 40.2%, 0%, 48.2%)
CIE-LABlab(33.64, 5.93, -33.37)
CIE-LCHlch(33.64, 33.89, 280.07°)
OKLaboklab(42.97% -0.0176 -0.0948)
OKLCHoklch(42.97% 0.096 259.5)
XYZxyz(8.0861, 7.8380, 22.9121)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F84 #84632E
analogous
#2E7A84 #2E4F84 #382E84
triadic
#2E4F84 #842E4F #4F842E
tetradic
#2E4F84 #842E7A #84632E #2E8438
square
#2E4F84 #842E7A #84632E #2E8438
split-complementary
#2E4F84 #84382E #7A842E
monochromatic
#0E1929 #1E3457 #2E4F84 #3E6AB1 #648AC9

Accessibility & contrast

On white

8.18
#2E4F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2E4F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4F84
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F84#FFFFFF#000000##FFFFFF
##2E4F841.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385386
Deuteranopia (green-blind)
#2C4B83
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e4f84;
/* rgb */ color: rgb(46, 79, 132);
/* oklch */ color: oklch(43.0% 0.096 259.5);
Tailwind
colors: {
  custom: {
    50: '#7080a8',
    500: '#2e4f84',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f84;
$custom-light: #7080a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f84",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 132
  },
  "hsl": {
    "h": 216.977,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42967,
    "c": 0.09648,
    "h": 259.5
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#2E4F84
secondary
#B0905E
accent
#A450D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2E4F84

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

Preview Lab → · Contrast checker → · Palette generator →

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