#2D4E84#2D4E84

#2D4E84 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.098 H 259.8°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2D4E84
RGBrgb(45, 78, 132)
HSLhsl(217, 49%, 35%)
HSVhsv(217, 66%, 52%)
CMYKcmyk(65.9%, 40.9%, 0%, 48.2%)
CIE-LABlab(33.29, 6.39, -33.93)
CIE-LCHlch(33.29, 34.53, 280.67°)
OKLaboklab(42.68% -0.0174 -0.0965)
OKLCHoklch(42.68% 0.098 259.8)
XYZxyz(7.9700, 7.6719, 22.8861)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E84 #84632D
analogous
#2D7A84 #2D4E84 #372D84
triadic
#2D4E84 #842D4E #4E842D
tetradic
#2D4E84 #842D7A #84632D #2D8437
square
#2D4E84 #842D7A #84632D #2D8437
split-complementary
#2D4E84 #84372D #7A842D
monochromatic
#0E1829 #1D3356 #2D4E84 #3D69B2 #6289C9

Accessibility & contrast

On white

8.29
#2D4E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2D4E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E84
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E84#FFFFFF#000000##FFFFFF
##2D4E841.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365386
Deuteranopia (green-blind)
#294B83
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d4e84;
/* rgb */ color: rgb(45, 78, 132);
/* oklch */ color: oklch(42.7% 0.098 259.8);
Tailwind
colors: {
  custom: {
    50: '#6f7fa8',
    500: '#2d4e84',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e84;
$custom-light: #6f7fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e84",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 132
  },
  "hsl": {
    "h": 217.241,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4268,
    "c": 0.0981,
    "h": 259.8
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

primary
#2D4E84
secondary
#B0905D
accent
#A54FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2D4E84

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

Preview Lab → · Contrast checker → · Palette generator →

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