#2E4D87#2E4D87

#2E4D87 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.103 H 261.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2E4D87
RGBrgb(46, 77, 135)
HSLhsl(219, 49%, 35%)
HSVhsv(219, 66%, 53%)
CMYKcmyk(65.9%, 43%, 0%, 47.1%)
CIE-LABlab(33.22, 8.37, -35.89)
CIE-LCHlch(33.22, 36.86, 283.12°)
OKLaboklab(42.69% -0.0147 -0.1023)
OKLCHoklch(42.69% 0.103 261.8)
XYZxyz(8.1522, 7.6371, 23.9615)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4D87 #87682E
analogous
#2E7987 #2E4D87 #3B2E87
triadic
#2E4D87 #872E4D #4D872E
tetradic
#2E4D87 #872E79 #87682E #2E873B
square
#2E4D87 #872E79 #87682E #2E873B
split-complementary
#2E4D87 #873B2E #79872E
monochromatic
#0F192C #1E3359 #2E4D87 #3E67B5 #6588CA

Accessibility & contrast

On white

8.31
#2E4D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2E4D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4D87
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4D87#FFFFFF#000000##FFFFFF
##2E4D871.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335389
Deuteranopia (green-blind)
#254A86
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e4d87;
/* rgb */ color: rgb(46, 77, 135);
/* oklch */ color: oklch(42.7% 0.103 261.8);
Tailwind
colors: {
  custom: {
    50: '#707eaa',
    500: '#2e4d87',
    950: '#000000',
  },
}
SCSS
$custom: #2e4d87;
$custom-light: #707eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4d87",
  "rgb": {
    "r": 46,
    "g": 77,
    "b": 135
  },
  "hsl": {
    "h": 219.101,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42694,
    "c": 0.10335,
    "h": 261.8
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#2E4D87
secondary
#B19560
accent
#A94FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2E4D87

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

Preview Lab → · Contrast checker → · Palette generator →

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