#2E4A87#2E4A87

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

Color values

HEX#2E4A87
RGBrgb(46, 74, 135)
HSLhsl(221, 49%, 35%)
HSVhsv(221, 66%, 53%)
CMYKcmyk(65.9%, 45.2%, 0%, 47.1%)
CIE-LABlab(32.32, 10.37, -37.33)
CIE-LCHlch(32.32, 38.74, 285.53°)
OKLaboklab(42% -0.0115 -0.1065)
OKLCHoklch(42% 0.107 263.8)
XYZxyz(7.9471, 7.2269, 23.8931)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4A87 #876B2E
analogous
#2E7687 #2E4A87 #3F2E87
triadic
#2E4A87 #872E4A #4A872E
tetradic
#2E4A87 #872E76 #876B2E #2E873F
square
#2E4A87 #872E76 #876B2E #2E873F
split-complementary
#2E4A87 #873F2E #76872E
monochromatic
#0F182C #1E3159 #2E4A87 #3E63B5 #6585CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E4A87#FFFFFF#000000##FFFFFF
##2E4A871.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)
#2D5089
Deuteranopia (green-blind)
#1F4886
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e4a87;
/* rgb */ color: rgb(46, 74, 135);
/* oklch */ color: oklch(42.0% 0.107 263.8);
Tailwind
colors: {
  custom: {
    50: '#707caa',
    500: '#2e4a87',
    950: '#000000',
  },
}
SCSS
$custom: #2e4a87;
$custom-light: #707caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4a87",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 135
  },
  "hsl": {
    "h": 221.124,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42002,
    "c": 0.10715,
    "h": 263.8
  },
  "luminance": 0.07228
}

Semantic roles & 50–950 ramp

primary
#2E4A87
secondary
#B19860
accent
#AD4FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4A87

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

Preview Lab → · Contrast checker → · Palette generator →

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