#2D4878#2D4878

#2D4878 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.088 H 261.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2D4878
RGBrgb(45, 72, 120)
HSLhsl(218, 45%, 32%)
HSVhsv(218, 63%, 47%)
CMYKcmyk(62.5%, 40%, 0%, 52.9%)
CIE-LABlab(30.76, 5.92, -30.50)
CIE-LCHlch(30.76, 31.07, 280.98°)
OKLaboklab(40.49% -0.0135 -0.0866)
OKLCHoklch(40.49% 0.088 261.1)
XYZxyz(6.7885, 6.5481, 18.6718)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4878 #785D2D
analogous
#2D6E78 #2D4878 #372D78
triadic
#2D4878 #782D48 #48782D
tetradic
#2D4878 #782D6E #785D2D #2D7837
square
#2D4878 #782D6E #785D2D #2D7837
split-complementary
#2D4878 #78372D #6E782D
monochromatic
#0C131F #1C2D4B #2D4878 #3E63A5 #5D82C2

Accessibility & contrast

On white

9.09
#2D4878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2D4878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4878
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4878#FFFFFF#000000##FFFFFF
##2D48781.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344C7A
Deuteranopia (green-blind)
#294577
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4878;
/* rgb */ color: rgb(45, 72, 120);
/* oklch */ color: oklch(40.5% 0.088 261.1);
Tailwind
colors: {
  custom: {
    50: '#6d7a9f',
    500: '#2d4878',
    950: '#000000',
  },
}
SCSS
$custom: #2d4878;
$custom-light: #6d7a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4878",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 120
  },
  "hsl": {
    "h": 218.4,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40487,
    "c": 0.08761,
    "h": 261.1
  },
  "luminance": 0.06549
}

Semantic roles & 50–950 ramp

primary
#2D4878
secondary
#A98C58
accent
#A653D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2D4878

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

Preview Lab → · Contrast checker → · Palette generator →

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