#2E4D7F#2E4D7F

#2E4D7F is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.092 H 259.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2E4D7F
RGBrgb(46, 77, 127)
HSLhsl(217, 47%, 34%)
HSVhsv(217, 64%, 50%)
CMYKcmyk(63.8%, 39.4%, 0%, 50.2%)
CIE-LABlab(32.74, 5.39, -31.70)
CIE-LCHlch(32.74, 32.16, 279.66°)
OKLaboklab(42.18% -0.0166 -0.09)
OKLCHoklch(42.18% 0.092 259.5)
XYZxyz(7.6100, 7.4202, 21.1058)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4D7F #7F602E
analogous
#2E767F #2E4D7F #382E7F
triadic
#2E4D7F #7F2E4D #4D7F2E
tetradic
#2E4D7F #7F2E76 #7F602E #2E7F38
square
#2E4D7F #7F2E76 #7F602E #2E7F38
split-complementary
#2E4D7F #7F382E #767F2E
monochromatic
#0D1725 #1E3252 #2E4D7F #3E68AC #6188C6

Accessibility & contrast

On white

8.45
#2E4D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4D7F
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4D7F#FFFFFF#000000##FFFFFF
##2E4D7F1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375181
Deuteranopia (green-blind)
#2C4A7E
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e4d7f;
/* rgb */ color: rgb(46, 77, 127);
/* oklch */ color: oklch(42.2% 0.092 259.5);
Tailwind
colors: {
  custom: {
    50: '#6f7ea4',
    500: '#2e4d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e4d7f;
$custom-light: #6f7ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4d7f",
  "rgb": {
    "r": 46,
    "g": 77,
    "b": 127
  },
  "hsl": {
    "h": 217.037,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42176,
    "c": 0.09153,
    "h": 259.5
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#2E4D7F
secondary
#AD8E5C
accent
#A451D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2E4D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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