#2D4F84#2D4F84

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

Color values

HEX#2D4F84
RGBrgb(45, 79, 132)
HSLhsl(217, 49%, 35%)
HSVhsv(217, 66%, 52%)
CMYKcmyk(65.9%, 40.2%, 0%, 48.2%)
CIE-LABlab(33.59, 5.73, -33.45)
CIE-LCHlch(33.59, 33.94, 279.72°)
OKLaboklab(42.92% -0.0185 -0.0951)
OKLCHoklch(42.92% 0.097 259)
XYZxyz(8.0415, 7.8150, 22.9100)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F84 #84622D
analogous
#2D7B84 #2D4F84 #372D84
triadic
#2D4F84 #842D4F #4F842D
tetradic
#2D4F84 #842D7B #84622D #2D8437
square
#2D4F84 #842D7B #84622D #2D8437
split-complementary
#2D4F84 #84372D #7B842D
monochromatic
#0E1829 #1D3456 #2D4F84 #3D6AB2 #628AC9

Accessibility & contrast

On white

8.19
#2D4F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2D4F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F84
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F84#FFFFFF#000000##FFFFFF
##2D4F841.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385386
Deuteranopia (green-blind)
#2B4B83
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4f84;
/* rgb */ color: rgb(45, 79, 132);
/* oklch */ color: oklch(42.9% 0.097 259.0);
Tailwind
colors: {
  custom: {
    50: '#6f80a8',
    500: '#2d4f84',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f84;
$custom-light: #6f80a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f84",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 132
  },
  "hsl": {
    "h": 216.552,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42916,
    "c": 0.09689,
    "h": 259
  },
  "luminance": 0.07816
}

Semantic roles & 50–950 ramp

primary
#2D4F84
secondary
#B08F5D
accent
#A34FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2D4F84

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

Preview Lab → · Contrast checker → · Palette generator →

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