#2D4587#2D4587

#2D4587 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.114 H 266.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2D4587
RGBrgb(45, 69, 135)
HSLhsl(224, 50%, 35%)
HSVhsv(224, 67%, 53%)
CMYKcmyk(66.7%, 48.9%, 0%, 47.1%)
CIE-LABlab(30.79, 13.56, -39.78)
CIE-LCHlch(30.79, 42.02, 288.82°)
OKLaboklab(40.82% -0.0072 -0.1138)
OKLCHoklch(40.82% 0.114 266.4)
XYZxyz(7.5820, 6.5627, 23.7841)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4587 #876F2D
analogous
#2D7287 #2D4587 #422D87
triadic
#2D4587 #872D45 #45872D
tetradic
#2D4587 #872D72 #876F2D #2D8742
square
#2D4587 #872D72 #876F2D #2D8742
split-complementary
#2D4587 #87422D #72872D
monochromatic
#0E162B #1E2E59 #2D4587 #3C5CB5 #637FCB

Accessibility & contrast

On white

9.08
#2D4587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2D4587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4587
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4587#FFFFFF#000000##FFFFFF
##2D45871.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D89
Deuteranopia (green-blind)
#114586
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4587;
/* rgb */ color: rgb(45, 69, 135);
/* oklch */ color: oklch(40.8% 0.114 266.4);
Tailwind
colors: {
  custom: {
    50: '#7078aa',
    500: '#2d4587',
    950: '#000000',
  },
}
SCSS
$custom: #2d4587;
$custom-light: #7078aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4587",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 224,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40816,
    "c": 0.11406,
    "h": 266.4
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#2D4587
secondary
#B29B5E
accent
#B44EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4587

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

Preview Lab → · Contrast checker → · Palette generator →

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