#2D4972#2D4972

#2D4972 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.077 H 257.8°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#2D4972
RGBrgb(45, 73, 114)
HSLhsl(216, 43%, 31%)
HSVhsv(216, 61%, 45%)
CMYKcmyk(60.5%, 36%, 0%, 55.3%)
CIE-LABlab(30.73, 3.06, -26.78)
CIE-LCHlch(30.73, 26.95, 276.52°)
OKLaboklab(40.36% -0.0163 -0.0757)
OKLCHoklch(40.36% 0.077 257.8)
XYZxyz(6.5009, 6.5373, 16.8356)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4972 #72562D
analogous
#2D6B72 #2D4972 #332D72
triadic
#2D4972 #722D49 #49722D
tetradic
#2D4972 #722D6B #72562D #2D7233
square
#2D4972 #722D6B #72562D #2D7233
split-complementary
#2D4972 #72332D #6B722D
monochromatic
#0A111A #1C2D46 #2D4972 #3E659E #5B83BE

Accessibility & contrast

On white

9.10
#2D4972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4972
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4972#FFFFFF#000000##FFFFFF
##2D49721.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C74
Deuteranopia (green-blind)
#2F4571
Tritanopia (blue-blind)
#005258
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4972;
/* rgb */ color: rgb(45, 73, 114);
/* oklch */ color: oklch(40.4% 0.077 257.8);
Tailwind
colors: {
  custom: {
    50: '#6c7b9b',
    500: '#2d4972',
    950: '#000000',
  },
}
SCSS
$custom: #2d4972;
$custom-light: #6c7b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4972",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 114
  },
  "hsl": {
    "h": 215.652,
    "s": 43.396,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40357,
    "c": 0.07742,
    "h": 257.8
  },
  "luminance": 0.06538
}

Semantic roles & 50–950 ramp

primary
#2D4972
secondary
#A38557
accent
#A055D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2D4972

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

Preview Lab → · Contrast checker → · Palette generator →

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