#2E4D8A#2E4D8A

#2E4D8A is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.108 H 262.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2E4D8A
RGBrgb(46, 77, 138)
HSLhsl(220, 50%, 36%)
HSVhsv(220, 67%, 54%)
CMYKcmyk(66.7%, 44.2%, 0%, 45.9%)
CIE-LABlab(33.40, 9.49, -37.44)
CIE-LCHlch(33.40, 38.63, 284.23°)
OKLaboklab(42.9% -0.0141 -0.1068)
OKLCHoklch(42.9% 0.108 262.5)
XYZxyz(8.3664, 7.7228, 25.0896)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4D8A #8A6B2E
analogous
#2E7B8A #2E4D8A #3D2E8A
triadic
#2E4D8A #8A2E4D #4D8A2E
tetradic
#2E4D8A #8A2E7B #8A6B2E #2E8A3D
square
#2E4D8A #8A2E7B #8A6B2E #2E8A3D
split-complementary
#2E4D8A #8A3D2E #7B8A2E
monochromatic
#0F1A2E #1F335C #2E4D8A #3D67B8 #6689CC

Accessibility & contrast

On white

8.25
#2E4D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4D8A
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4D8A#FFFFFF#000000##FFFFFF
##2E4D8A1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538C
Deuteranopia (green-blind)
#224B89
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e4d8a;
/* rgb */ color: rgb(46, 77, 138);
/* oklch */ color: oklch(42.9% 0.108 262.5);
Tailwind
colors: {
  custom: {
    50: '#717eac',
    500: '#2e4d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e4d8a;
$custom-light: #717eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4d8a",
  "rgb": {
    "r": 46,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 219.783,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42895,
    "c": 0.10777,
    "h": 262.5
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#2E4D8A
secondary
#B39761
accent
#AB4EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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