#2D4E7F#2D4E7F

#2D4E7F is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.4% C 0.091 H 258.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2D4E7F
RGBrgb(45, 78, 127)
HSLhsl(216, 48%, 34%)
HSVhsv(216, 65%, 50%)
CMYKcmyk(64.6%, 38.6%, 0%, 50.2%)
CIE-LABlab(33.00, 4.53, -31.30)
CIE-LCHlch(33.00, 31.63, 278.24°)
OKLaboklab(42.36% -0.0187 -0.0888)
OKLCHoklch(42.36% 0.091 258.1)
XYZxyz(7.6360, 7.5383, 21.1272)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E7F #7F5E2D
analogous
#2D777F #2D4E7F #352D7F
triadic
#2D4E7F #7F2D4E #4E7F2D
tetradic
#2D4E7F #7F2D77 #7F5E2D #2D7F35
square
#2D4E7F #7F2D77 #7F5E2D #2D7F35
split-complementary
#2D4E7F #7F352D #777F2D
monochromatic
#0D1625 #1D3252 #2D4E7F #3D6AAC #6089C7

Accessibility & contrast

On white

8.37
#2D4E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2D4E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E7F
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E7F#FFFFFF#000000##FFFFFF
##2D4E7F1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#2E4A7E
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d4e7f;
/* rgb */ color: rgb(45, 78, 127);
/* oklch */ color: oklch(42.4% 0.091 258.1);
Tailwind
colors: {
  custom: {
    50: '#6e7fa4',
    500: '#2d4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e7f;
$custom-light: #6e7fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e7f",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 215.854,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42363,
    "c": 0.09077,
    "h": 258.1
  },
  "luminance": 0.07539
}

Semantic roles & 50–950 ramp

primary
#2D4E7F
secondary
#AD8C5B
accent
#A151D7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2D4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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