#2E4E81#2E4E81

#2E4E81 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.093 H 259.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2E4E81
RGBrgb(46, 78, 129)
HSLhsl(217, 47%, 34%)
HSVhsv(217, 64%, 51%)
CMYKcmyk(64.3%, 39.5%, 0%, 49.4%)
CIE-LABlab(33.17, 5.47, -32.27)
CIE-LCHlch(33.17, 32.74, 279.63°)
OKLaboklab(42.54% -0.0173 -0.0917)
OKLCHoklch(42.54% 0.093 259.3)
XYZxyz(7.8122, 7.6139, 21.8226)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4E81 #81612E
analogous
#2E7881 #2E4E81 #372E81
triadic
#2E4E81 #812E4E #4E812E
tetradic
#2E4E81 #812E78 #81612E #2E8137
square
#2E4E81 #812E78 #81612E #2E8137
split-complementary
#2E4E81 #81372E #78812E
monochromatic
#0E1727 #1E3354 #2E4E81 #3E69AE #6289C7

Accessibility & contrast

On white

8.32
#2E4E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2E4E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4E81
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4E81#FFFFFF#000000##FFFFFF
##2E4E811.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385283
Deuteranopia (green-blind)
#2C4A80
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e4e81;
/* rgb */ color: rgb(46, 78, 129);
/* oklch */ color: oklch(42.5% 0.093 259.3);
Tailwind
colors: {
  custom: {
    50: '#6f7fa6',
    500: '#2e4e81',
    950: '#000000',
  },
}
SCSS
$custom: #2e4e81;
$custom-light: #6f7fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4e81",
  "rgb": {
    "r": 46,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 216.867,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4254,
    "c": 0.09328,
    "h": 259.3
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#2E4E81
secondary
#AE8F5D
accent
#A351D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2E4E81

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

Preview Lab → · Contrast checker → · Palette generator →

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