#2D4B78#2D4B78

#2D4B78 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.2% C 0.084 H 258.3°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2D4B78
RGBrgb(45, 75, 120)
HSLhsl(216, 45%, 32%)
HSVhsv(216, 63%, 47%)
CMYKcmyk(62.5%, 37.5%, 0%, 52.9%)
CIE-LABlab(31.68, 3.93, -29.04)
CIE-LCHlch(31.68, 29.30, 277.70°)
OKLaboklab(41.21% -0.017 -0.0822)
OKLCHoklch(41.21% 0.084 258.3)
XYZxyz(6.9872, 6.9455, 18.7381)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4B78 #785A2D
analogous
#2D7178 #2D4B78 #342D78
triadic
#2D4B78 #782D4B #4B782D
tetradic
#2D4B78 #782D71 #785A2D #2D7834
square
#2D4B78 #782D71 #785A2D #2D7834
split-complementary
#2D4B78 #78342D #71782D
monochromatic
#0C131F #1C2F4B #2D4B78 #3E67A5 #5D86C2

Accessibility & contrast

On white

8.79
#2D4B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2D4B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4B78
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4B78#FFFFFF#000000##FFFFFF
##2D4B781.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384E7A
Deuteranopia (green-blind)
#2E4777
Tritanopia (blue-blind)
#00555C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d4b78;
/* rgb */ color: rgb(45, 75, 120);
/* oklch */ color: oklch(41.2% 0.084 258.3);
Tailwind
colors: {
  custom: {
    50: '#6d7d9f',
    500: '#2d4b78',
    950: '#000000',
  },
}
SCSS
$custom: #2d4b78;
$custom-light: #6d7d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4b78",
  "rgb": {
    "r": 45,
    "g": 75,
    "b": 120
  },
  "hsl": {
    "h": 216,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41207,
    "c": 0.084,
    "h": 258.3
  },
  "luminance": 0.06946
}

Semantic roles & 50–950 ramp

primary
#2D4B78
secondary
#A98858
accent
#A153D5
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2D4B78

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

Preview Lab → · Contrast checker → · Palette generator →

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