#2D4979#2D4979

#2D4979 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.088 H 260.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2D4979
RGBrgb(45, 73, 121)
HSLhsl(218, 46%, 33%)
HSVhsv(218, 63%, 47%)
CMYKcmyk(62.8%, 39.7%, 0%, 52.5%)
CIE-LABlab(31.12, 5.62, -30.55)
CIE-LCHlch(31.12, 31.06, 280.43°)
OKLaboklab(40.79% -0.0144 -0.0867)
OKLCHoklch(40.79% 0.088 260.6)
XYZxyz(6.9147, 6.7028, 19.0148)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4979 #795D2D
analogous
#2D6F79 #2D4979 #372D79
triadic
#2D4979 #792D49 #49792D
tetradic
#2D4979 #792D6F #795D2D #2D7937
square
#2D4979 #792D6F #795D2D #2D7937
split-complementary
#2D4979 #79372D #6F792D
monochromatic
#0C1320 #1C2E4C #2D4979 #3E64A6 #5D83C3

Accessibility & contrast

On white

8.97
#2D4979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4979
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4979#FFFFFF#000000##FFFFFF
##2D49791.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344D7B
Deuteranopia (green-blind)
#2A4678
Tritanopia (blue-blind)
#00545B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4979;
/* rgb */ color: rgb(45, 73, 121);
/* oklch */ color: oklch(40.8% 0.088 260.6);
Tailwind
colors: {
  custom: {
    50: '#6d7ba0',
    500: '#2d4979',
    950: '#000000',
  },
}
SCSS
$custom: #2d4979;
$custom-light: #6d7ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4979",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 121
  },
  "hsl": {
    "h": 217.895,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40789,
    "c": 0.08788,
    "h": 260.6
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4979

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

Preview Lab → · Contrast checker → · Palette generator →

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