#2D4978#2D4978

#2D4978 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.7% C 0.086 H 260.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2D4978
RGBrgb(45, 73, 120)
HSLhsl(218, 45%, 32%)
HSVhsv(218, 63%, 47%)
CMYKcmyk(62.5%, 39.2%, 0%, 52.9%)
CIE-LABlab(31.06, 5.25, -30.01)
CIE-LCHlch(31.06, 30.47, 279.93°)
OKLaboklab(40.73% -0.0147 -0.0851)
OKLCHoklch(40.73% 0.086 260.2)
XYZxyz(6.8537, 6.6784, 18.6935)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4978 #785C2D
analogous
#2D6F78 #2D4978 #362D78
triadic
#2D4978 #782D49 #49782D
tetradic
#2D4978 #782D6F #785C2D #2D7836
square
#2D4978 #782D6F #785C2D #2D7836
split-complementary
#2D4978 #78362D #6F782D
monochromatic
#0C131F #1C2E4B #2D4978 #3E64A5 #5D83C2

Accessibility & contrast

On white

8.99
#2D4978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2D4978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4978
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4978#FFFFFF#000000##FFFFFF
##2D49781.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354D7A
Deuteranopia (green-blind)
#2B4677
Tritanopia (blue-blind)
#00545A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4978;
/* rgb */ color: rgb(45, 73, 120);
/* oklch */ color: oklch(40.7% 0.086 260.2);
Tailwind
colors: {
  custom: {
    50: '#6d7b9f',
    500: '#2d4978',
    950: '#000000',
  },
}
SCSS
$custom: #2d4978;
$custom-light: #6d7b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4978",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 120
  },
  "hsl": {
    "h": 217.6,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40726,
    "c": 0.08639,
    "h": 260.2
  },
  "luminance": 0.06679
}

Semantic roles & 50–950 ramp

primary
#2D4978
secondary
#A98B58
accent
#A453D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2D4978

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

Preview Lab → · Contrast checker → · Palette generator →

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