#2D4E7E#2D4E7E

#2D4E7E is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.3% C 0.089 H 257.8°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2D4E7E
RGBrgb(45, 78, 126)
HSLhsl(216, 47%, 34%)
HSVhsv(216, 64%, 49%)
CMYKcmyk(64.3%, 38.1%, 0%, 50.6%)
CIE-LABlab(32.95, 4.16, -30.77)
CIE-LCHlch(32.95, 31.05, 277.70°)
OKLaboklab(42.3% -0.0189 -0.0873)
OKLCHoklch(42.3% 0.089 257.8)
XYZxyz(7.5711, 7.5123, 20.7857)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E7E #7E5D2D
analogous
#2D767E #2D4E7E #352D7E
triadic
#2D4E7E #7E2D4E #4E7E2D
tetradic
#2D4E7E #7E2D76 #7E5D2D #2D7E35
square
#2D4E7E #7E2D76 #7E5D2D #2D7E35
split-complementary
#2D4E7E #7E352D #767E2D
monochromatic
#0D1624 #1D3251 #2D4E7E #3D6AAB #5F89C6

Accessibility & contrast

On white

8.39
#2D4E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2D4E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E7E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E7E#FFFFFF#000000##FFFFFF
##2D4E7E1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395280
Deuteranopia (green-blind)
#2E4A7D
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d4e7e;
/* rgb */ color: rgb(45, 78, 126);
/* oklch */ color: oklch(42.3% 0.089 257.8);
Tailwind
colors: {
  custom: {
    50: '#6e7fa3',
    500: '#2d4e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e7e;
$custom-light: #6e7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e7e",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 215.556,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.423,
    "c": 0.08931,
    "h": 257.8
  },
  "luminance": 0.07513
}

Semantic roles & 50–950 ramp

primary
#2D4E7E
secondary
#AC8B5A
accent
#A051D7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2D4E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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