#2D4879#2D4879

#2D4879 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.6% C 0.089 H 261.4°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2D4879
RGBrgb(45, 72, 121)
HSLhsl(219, 46%, 33%)
HSVhsv(219, 63%, 47%)
CMYKcmyk(62.8%, 40.5%, 0%, 52.5%)
CIE-LABlab(30.81, 6.29, -31.04)
CIE-LCHlch(30.81, 31.67, 281.46°)
OKLaboklab(40.55% -0.0132 -0.0881)
OKLCHoklch(40.55% 0.089 261.4)
XYZxyz(6.8495, 6.5725, 18.9931)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4879 #795E2D
analogous
#2D6E79 #2D4879 #382D79
triadic
#2D4879 #792D48 #48792D
tetradic
#2D4879 #792D6E #795E2D #2D7938
square
#2D4879 #792D6E #795E2D #2D7938
split-complementary
#2D4879 #79382D #6E792D
monochromatic
#0C1320 #1C2D4C #2D4879 #3E63A6 #5D82C3

Accessibility & contrast

On white

9.07
#2D4879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4879
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4879#FFFFFF#000000##FFFFFF
##2D48791.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334C7B
Deuteranopia (green-blind)
#294578
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4879;
/* rgb */ color: rgb(45, 72, 121);
/* oklch */ color: oklch(40.6% 0.089 261.4);
Tailwind
colors: {
  custom: {
    50: '#6d7aa0',
    500: '#2d4879',
    950: '#000000',
  },
}
SCSS
$custom: #2d4879;
$custom-light: #6d7aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4879",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 218.684,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40551,
    "c": 0.08912,
    "h": 261.4
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4879

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

Preview Lab → · Contrast checker → · Palette generator →

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