#2D4778#2D4778

#2D4778 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.2% C 0.089 H 262.0°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2D4778
RGBrgb(45, 71, 120)
HSLhsl(219, 45%, 32%)
HSVhsv(219, 63%, 47%)
CMYKcmyk(62.5%, 40.8%, 0%, 52.9%)
CIE-LABlab(30.45, 6.59, -30.99)
CIE-LCHlch(30.45, 31.68, 282.00°)
OKLaboklab(40.25% -0.0123 -0.088)
OKLCHoklch(40.25% 0.089 262)
XYZxyz(6.7244, 6.4199, 18.6504)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4778 #785E2D
analogous
#2D6D78 #2D4778 #382D78
triadic
#2D4778 #782D47 #47782D
tetradic
#2D4778 #782D6D #785E2D #2D7838
square
#2D4778 #782D6D #785E2D #2D7838
split-complementary
#2D4778 #78382D #6D782D
monochromatic
#0C121F #1C2D4B #2D4778 #3E61A5 #5D80C2

Accessibility & contrast

On white

9.19
#2D4778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2D4778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4778
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4778#FFFFFF#000000##FFFFFF
##2D47781.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324B7A
Deuteranopia (green-blind)
#284477
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4778;
/* rgb */ color: rgb(45, 71, 120);
/* oklch */ color: oklch(40.2% 0.089 262.0);
Tailwind
colors: {
  custom: {
    50: '#6d799f',
    500: '#2d4778',
    950: '#000000',
  },
}
SCSS
$custom: #2d4778;
$custom-light: #6d799f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4778",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 120
  },
  "hsl": {
    "h": 219.2,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40249,
    "c": 0.08887,
    "h": 262
  },
  "luminance": 0.0642
}

Semantic roles & 50–950 ramp

primary
#2D4778
secondary
#A98D58
accent
#A853D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2D4778

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

Preview Lab → · Contrast checker → · Palette generator →

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