#2D5287#2D5287

#2D5287 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.098 H 257.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2D5287
RGBrgb(45, 82, 135)
HSLhsl(215, 50%, 35%)
HSVhsv(215, 67%, 53%)
CMYKcmyk(66.7%, 39.3%, 0%, 47.1%)
CIE-LABlab(34.68, 4.88, -33.56)
CIE-LCHlch(34.68, 33.92, 278.27°)
OKLaboklab(43.82% -0.0211 -0.0954)
OKLCHoklch(43.82% 0.098 257.5)
XYZxyz(8.4711, 8.3409, 24.0805)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5287 #87622D
analogous
#2D7F87 #2D5287 #352D87
triadic
#2D5287 #872D52 #52872D
tetradic
#2D5287 #872D7F #87622D #2D8735
square
#2D5287 #872D7F #87622D #2D8735
split-complementary
#2D5287 #87352D #7F872D
monochromatic
#0E1A2B #1E3659 #2D5287 #3C6EB5 #638ECB

Accessibility & contrast

On white

7.87
#2D5287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5287
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5287#FFFFFF#000000##FFFFFF
##2D52871.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.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: #2d5287;
/* rgb */ color: rgb(45, 82, 135);
/* oklch */ color: oklch(43.8% 0.098 257.5);
Tailwind
colors: {
  custom: {
    50: '#7082aa',
    500: '#2d5287',
    950: '#000000',
  },
}
SCSS
$custom: #2d5287;
$custom-light: #7082aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5287",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 135
  },
  "hsl": {
    "h": 215.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43818,
    "c": 0.0977,
    "h": 257.5
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#2D5287
secondary
#B28F5E
accent
#A04EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D5287

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

Preview Lab → · Contrast checker → · Palette generator →

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