#2E4A8D#2E4A8D

#2E4A8D is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.4% C 0.116 H 264.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2E4A8D
RGBrgb(46, 74, 141)
HSLhsl(222, 51%, 37%)
HSVhsv(222, 67%, 55%)
CMYKcmyk(67.4%, 47.5%, 0%, 44.7%)
CIE-LABlab(32.70, 12.63, -40.40)
CIE-LCHlch(32.70, 42.33, 287.36°)
OKLaboklab(42.42% -0.0104 -0.1156)
OKLCHoklch(42.42% 0.116 264.8)
XYZxyz(8.3815, 7.4007, 26.1809)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4A8D #8D712E
analogous
#2E7A8D #2E4A8D #422E8D
triadic
#2E4A8D #8D2E4A #4A8D2E
tetradic
#2E4A8D #8D2E7A #8D712E #2E8D42
square
#2E4A8D #8D2E7A #8D712E #2E8D42
split-complementary
#2E4A8D #8D422E #7A8D2E
monochromatic
#101A31 #1F325F #2E4A8D #3D62BB #6886CE

Accessibility & contrast

On white

8.47
#2E4A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2E4A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4A8D
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4A8D#FFFFFF#000000##FFFFFF
##2E4A8D1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285290
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e4a8d;
/* rgb */ color: rgb(46, 74, 141);
/* oklch */ color: oklch(42.4% 0.116 264.8);
Tailwind
colors: {
  custom: {
    50: '#727caf',
    500: '#2e4a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e4a8d;
$custom-light: #727caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4a8d",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 222.316,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.11603,
    "h": 264.8
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#2E4A8D
secondary
#B59C62
accent
#B14EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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