#2D4774#2D4774

#2D4774 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.0% C 0.083 H 260.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2D4774
RGBrgb(45, 71, 116)
HSLhsl(218, 44%, 32%)
HSVhsv(218, 61%, 45%)
CMYKcmyk(61.2%, 38.8%, 0%, 54.5%)
CIE-LABlab(30.22, 5.12, -28.84)
CIE-LCHlch(30.22, 29.29, 280.06°)
OKLaboklab(40% -0.0133 -0.0817)
OKLCHoklch(40% 0.083 260.7)
XYZxyz(6.4867, 6.3248, 17.3986)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4774 #745A2D
analogous
#2D6B74 #2D4774 #372D74
triadic
#2D4774 #742D47 #47742D
tetradic
#2D4774 #742D6B #745A2D #2D7437
square
#2D4774 #742D6B #745A2D #2D7437
split-complementary
#2D4774 #74372D #6B742D
monochromatic
#0B111C #1C2C48 #2D4774 #3E62A0 #5C80C0

Accessibility & contrast

On white

9.27
#2D4774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D4774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4774
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4774#FFFFFF#000000##FFFFFF
##2D47741.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344B76
Deuteranopia (green-blind)
#2B4473
Tritanopia (blue-blind)
#005158
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d4774;
/* rgb */ color: rgb(45, 71, 116);
/* oklch */ color: oklch(40.0% 0.083 260.7);
Tailwind
colors: {
  custom: {
    50: '#6c799c',
    500: '#2d4774',
    950: '#000000',
  },
}
SCSS
$custom: #2d4774;
$custom-light: #6c799c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4774",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 116
  },
  "hsl": {
    "h": 218.028,
    "s": 44.099,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39995,
    "c": 0.08281,
    "h": 260.7
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#2D4774
secondary
#A58957
accent
#A554D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2D4774

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

Preview Lab → · Contrast checker → · Palette generator →

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