#2D5087#2D5087

#2D5087 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.100 H 259.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2D5087
RGBrgb(45, 80, 135)
HSLhsl(217, 50%, 35%)
HSVhsv(217, 67%, 53%)
CMYKcmyk(66.7%, 40.7%, 0%, 47.1%)
CIE-LABlab(34.07, 6.19, -34.53)
CIE-LCHlch(34.07, 35.08, 280.17°)
OKLaboklab(43.35% -0.0189 -0.0983)
OKLCHoklch(43.35% 0.1 259.1)
XYZxyz(8.3225, 8.0437, 24.0310)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5087 #87642D
analogous
#2D7D87 #2D5087 #372D87
triadic
#2D5087 #872D50 #50872D
tetradic
#2D5087 #872D7D #87642D #2D8737
square
#2D5087 #872D7D #87642D #2D8737
split-complementary
#2D5087 #87372D #7D872D
monochromatic
#0E1A2B #1E3559 #2D5087 #3C6BB5 #638CCB

Accessibility & contrast

On white

8.05
#2D5087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2D5087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5087
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5087#FFFFFF#000000##FFFFFF
##2D50871.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375589
Deuteranopia (green-blind)
#2A4C86
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5087;
/* rgb */ color: rgb(45, 80, 135);
/* oklch */ color: oklch(43.3% 0.100 259.1);
Tailwind
colors: {
  custom: {
    50: '#7080aa',
    500: '#2d5087',
    950: '#000000',
  },
}
SCSS
$custom: #2d5087;
$custom-light: #7080aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5087",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 135
  },
  "hsl": {
    "h": 216.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43345,
    "c": 0.10006,
    "h": 259.1
  },
  "luminance": 0.08044
}

Semantic roles & 50–950 ramp

primary
#2D5087
secondary
#B2915E
accent
#A34EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D5087

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

Preview Lab → · Contrast checker → · Palette generator →

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