#2E4C7D#2E4C7D

#2E4C7D is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.8% C 0.090 H 259.8°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2E4C7D
RGBrgb(46, 76, 125)
HSLhsl(217, 46%, 34%)
HSVhsv(217, 63%, 49%)
CMYKcmyk(63.2%, 39.2%, 0%, 51%)
CIE-LABlab(32.32, 5.32, -31.13)
CIE-LCHlch(32.32, 31.58, 279.69°)
OKLaboklab(41.81% -0.016 -0.0883)
OKLCHoklch(41.81% 0.09 259.8)
XYZxyz(7.4115, 7.2297, 20.4030)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4C7D #7D5F2E
analogous
#2E737D #2E4C7D #372E7D
triadic
#2E4C7D #7D2E4C #4C7D2E
tetradic
#2E4C7D #7D2E73 #7D5F2E #2E7D37
square
#2E4C7D #7D2E73 #7D5F2E #2E7D37
split-complementary
#2E4C7D #7D372E #737D2E
monochromatic
#0D1624 #1E3150 #2E4C7D #3E67AA #6187C5

Accessibility & contrast

On white

8.59
#2E4C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2E4C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4C7D
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4C7D#FFFFFF#000000##FFFFFF
##2E4C7D1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37507F
Deuteranopia (green-blind)
#2C497C
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e4c7d;
/* rgb */ color: rgb(46, 76, 125);
/* oklch */ color: oklch(41.8% 0.090 259.8);
Tailwind
colors: {
  custom: {
    50: '#6e7da3',
    500: '#2e4c7d',
    950: '#000000',
  },
}
SCSS
$custom: #2e4c7d;
$custom-light: #6e7da3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4c7d",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 125
  },
  "hsl": {
    "h": 217.215,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.08977,
    "h": 259.8
  },
  "luminance": 0.0723
}

Semantic roles & 50–950 ramp

primary
#2E4C7D
secondary
#AB8D5B
accent
#A452D6
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2E4C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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