#2D4E87#2D4E87

#2D4E87 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.102 H 260.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2D4E87
RGBrgb(45, 78, 135)
HSLhsl(218, 50%, 35%)
HSVhsv(218, 67%, 53%)
CMYKcmyk(66.7%, 42.2%, 0%, 47.1%)
CIE-LABlab(33.47, 7.51, -35.50)
CIE-LCHlch(33.47, 36.28, 281.95°)
OKLaboklab(42.88% -0.0167 -0.1011)
OKLCHoklch(42.88% 0.103 260.6)
XYZxyz(8.1782, 7.7552, 23.9829)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E87 #87662D
analogous
#2D7B87 #2D4E87 #392D87
triadic
#2D4E87 #872D4E #4E872D
tetradic
#2D4E87 #872D7B #87662D #2D8739
square
#2D4E87 #872D7B #87662D #2D8739
split-complementary
#2D4E87 #87392D #7B872D
monochromatic
#0E192B #1E3359 #2D4E87 #3C69B5 #6389CB

Accessibility & contrast

On white

8.23
#2D4E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D4E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E87
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E87#FFFFFF#000000##FFFFFF
##2D4E871.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345389
Deuteranopia (green-blind)
#274B86
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4e87;
/* rgb */ color: rgb(45, 78, 135);
/* oklch */ color: oklch(42.9% 0.102 260.6);
Tailwind
colors: {
  custom: {
    50: '#707faa',
    500: '#2d4e87',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e87;
$custom-light: #707faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e87",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 135
  },
  "hsl": {
    "h": 218,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42875,
    "c": 0.1025,
    "h": 260.6
  },
  "luminance": 0.07756
}

Semantic roles & 50–950 ramp

primary
#2D4E87
secondary
#B2935E
accent
#A64EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4E87

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

Preview Lab → · Contrast checker → · Palette generator →

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