#2E5287#2E5287

#2E5287 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 43.9% C 0.097 H 258.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2E5287
RGBrgb(46, 82, 135)
HSLhsl(216, 49%, 35%)
HSVhsv(216, 66%, 53%)
CMYKcmyk(65.9%, 39.3%, 0%, 47.1%)
CIE-LABlab(34.73, 5.07, -33.49)
CIE-LCHlch(34.73, 33.87, 278.61°)
OKLaboklab(43.87% -0.0202 -0.0952)
OKLCHoklch(43.87% 0.097 258)
XYZxyz(8.5156, 8.3639, 24.0826)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5287 #87632E
analogous
#2E7E87 #2E5287 #362E87
triadic
#2E5287 #872E52 #52872E
tetradic
#2E5287 #872E7E #87632E #2E8736
square
#2E5287 #872E7E #87632E #2E8736
split-complementary
#2E5287 #87362E #7E872E
monochromatic
#0F1B2C #1E3659 #2E5287 #3E6EB5 #658ECA

Accessibility & contrast

On white

7.86
#2E5287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2E5287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5287
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5287#FFFFFF#000000##FFFFFF
##2E52871.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5689
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2e5287;
/* rgb */ color: rgb(46, 82, 135);
/* oklch */ color: oklch(43.9% 0.097 258.0);
Tailwind
colors: {
  custom: {
    50: '#7082aa',
    500: '#2e5287',
    950: '#000000',
  },
}
SCSS
$custom: #2e5287;
$custom-light: #7082aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5287",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 135
  },
  "hsl": {
    "h": 215.73,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43867,
    "c": 0.09729,
    "h": 258
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#2E5287
secondary
#B19060
accent
#A14FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2E5287

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

Preview Lab → · Contrast checker → · Palette generator →

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