#2D4D81#2D4D81

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

Color values

HEX#2D4D81
RGBrgb(45, 77, 129)
HSLhsl(217, 48%, 34%)
HSVhsv(217, 65%, 51%)
CMYKcmyk(65.1%, 40.3%, 0%, 49.4%)
CIE-LABlab(32.81, 5.93, -32.84)
CIE-LCHlch(32.81, 33.37, 280.24°)
OKLaboklab(42.25% -0.017 -0.0934)
OKLCHoklch(42.25% 0.095 259.7)
XYZxyz(7.6971, 7.4499, 21.7970)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D81 #81612D
analogous
#2D7781 #2D4D81 #372D81
triadic
#2D4D81 #812D4D #4D812D
tetradic
#2D4D81 #812D77 #81612D #2D8137
square
#2D4D81 #812D77 #81612D #2D8137
split-complementary
#2D4D81 #81372D #77812D
monochromatic
#0D1726 #1D3254 #2D4D81 #3D68AE #6188C8

Accessibility & contrast

On white

8.43
#2D4D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2D4D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4D81
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D81#FFFFFF#000000##FFFFFF
##2D4D811.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365183
Deuteranopia (green-blind)
#2A4A80
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d4d81;
/* rgb */ color: rgb(45, 77, 129);
/* oklch */ color: oklch(42.3% 0.095 259.7);
Tailwind
colors: {
  custom: {
    50: '#6f7ea6',
    500: '#2d4d81',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d81;
$custom-light: #6f7ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d81",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 129
  },
  "hsl": {
    "h": 217.143,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42251,
    "c": 0.0949,
    "h": 259.7
  },
  "luminance": 0.07451
}

Semantic roles & 50–950 ramp

primary
#2D4D81
secondary
#AE8F5C
accent
#A450D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2D4D81

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

Preview Lab → · Contrast checker → · Palette generator →

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