#2D4D82#2D4D82

#2D4D82 is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.096 H 260.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2D4D82
RGBrgb(45, 77, 130)
HSLhsl(217, 49%, 34%)
HSVhsv(217, 65%, 51%)
CMYKcmyk(65.4%, 40.8%, 0%, 49%)
CIE-LABlab(32.87, 6.31, -33.37)
CIE-LCHlch(32.87, 33.96, 280.70°)
OKLaboklab(42.32% -0.0168 -0.0949)
OKLCHoklch(42.32% 0.096 260)
XYZxyz(7.7639, 7.4766, 22.1487)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D82 #82622D
analogous
#2D7882 #2D4D82 #382D82
triadic
#2D4D82 #822D4D #4D822D
tetradic
#2D4D82 #822D78 #82622D #2D8238
square
#2D4D82 #822D78 #82622D #2D8238
split-complementary
#2D4D82 #82382D #78822D
monochromatic
#0E1727 #1D3255 #2D4D82 #3D68AF #6188C8

Accessibility & contrast

On white

8.42
#2D4D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2D4D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4D82
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D82#FFFFFF#000000##FFFFFF
##2D4D821.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365284
Deuteranopia (green-blind)
#294A81
Tritanopia (blue-blind)
#005961
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d4d82;
/* rgb */ color: rgb(45, 77, 130);
/* oklch */ color: oklch(42.3% 0.096 260.0);
Tailwind
colors: {
  custom: {
    50: '#6f7ea6',
    500: '#2d4d82',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d82;
$custom-light: #6f7ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d82",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 130
  },
  "hsl": {
    "h": 217.412,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.42315,
    "c": 0.09638,
    "h": 260
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#2D4D82
secondary
#AF905C
accent
#A550D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2D4D82

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

Preview Lab → · Contrast checker → · Palette generator →

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