#2E4787#2E4787

#2E4787 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.111 H 265.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2E4787
RGBrgb(46, 71, 135)
HSLhsl(223, 49%, 35%)
HSVhsv(223, 66%, 53%)
CMYKcmyk(65.9%, 47.4%, 0%, 47.1%)
CIE-LABlab(31.43, 12.39, -38.75)
CIE-LCHlch(31.43, 40.68, 287.73°)
OKLaboklab(41.32% -0.0083 -0.1107)
OKLCHoklch(41.32% 0.111 265.7)
XYZxyz(7.7516, 6.8359, 23.8279)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4787 #876E2E
analogous
#2E7387 #2E4787 #412E87
triadic
#2E4787 #872E47 #47872E
tetradic
#2E4787 #872E73 #876E2E #2E8741
square
#2E4787 #872E73 #876E2E #2E8741
split-complementary
#2E4787 #87412E #73872E
monochromatic
#0F172C #1E2F59 #2E4787 #3E5FB5 #6581CA

Accessibility & contrast

On white

8.87
#2E4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2E4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4787
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4787#FFFFFF#000000##FFFFFF
##2E47871.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E89
Deuteranopia (green-blind)
#184686
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e4787;
/* rgb */ color: rgb(46, 71, 135);
/* oklch */ color: oklch(41.3% 0.111 265.7);
Tailwind
colors: {
  custom: {
    50: '#7079aa',
    500: '#2e4787',
    950: '#000000',
  },
}
SCSS
$custom: #2e4787;
$custom-light: #7079aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4787",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 223.146,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41321,
    "c": 0.11106,
    "h": 265.7
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#2E4787
secondary
#B19A60
accent
#B24FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4787

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

Preview Lab → · Contrast checker → · Palette generator →

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