#2E4E87#2E4E87

#2E4E87 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.102 H 261.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2E4E87
RGBrgb(46, 78, 135)
HSLhsl(218, 49%, 35%)
HSVhsv(218, 66%, 53%)
CMYKcmyk(65.9%, 42.2%, 0%, 47.1%)
CIE-LABlab(33.52, 7.70, -35.41)
CIE-LCHlch(33.52, 36.24, 282.27°)
OKLaboklab(42.93% -0.0158 -0.1009)
OKLCHoklch(42.93% 0.102 261.1)
XYZxyz(8.2227, 7.7781, 23.9850)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4E87 #87672E
analogous
#2E7A87 #2E4E87 #3A2E87
triadic
#2E4E87 #872E4E #4E872E
tetradic
#2E4E87 #872E7A #87672E #2E873A
square
#2E4E87 #872E7A #87672E #2E873A
split-complementary
#2E4E87 #873A2E #7A872E
monochromatic
#0F192C #1E3459 #2E4E87 #3E68B5 #6589CA

Accessibility & contrast

On white

8.22
#2E4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E4E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4E87
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4E87#FFFFFF#000000##FFFFFF
##2E4E871.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#274B86
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e4e87;
/* rgb */ color: rgb(46, 78, 135);
/* oklch */ color: oklch(42.9% 0.102 261.1);
Tailwind
colors: {
  custom: {
    50: '#707faa',
    500: '#2e4e87',
    950: '#000000',
  },
}
SCSS
$custom: #2e4e87;
$custom-light: #707faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4e87",
  "rgb": {
    "r": 46,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 218.427,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42926,
    "c": 0.1021,
    "h": 261.1
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#2E4E87
secondary
#B19460
accent
#A74FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2E4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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