#2D4E86#2D4E86

#2D4E86 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.101 H 260.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2D4E86
RGBrgb(45, 78, 134)
HSLhsl(218, 50%, 35%)
HSVhsv(218, 66%, 53%)
CMYKcmyk(66.4%, 41.8%, 0%, 47.5%)
CIE-LABlab(33.41, 7.14, -34.98)
CIE-LCHlch(33.41, 35.70, 281.54°)
OKLaboklab(42.81% -0.017 -0.0996)
OKLCHoklch(42.81% 0.101 260.3)
XYZxyz(8.1081, 7.7271, 23.6138)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E86 #86652D
analogous
#2D7A86 #2D4E86 #392D86
triadic
#2D4E86 #862D4E #4E862D
tetradic
#2D4E86 #862D7A #86652D #2D8639
square
#2D4E86 #862D7A #86652D #2D8639
split-complementary
#2D4E86 #86392D #7A862D
monochromatic
#0E192A #1E3358 #2D4E86 #3C69B4 #6389CB

Accessibility & contrast

On white

8.25
#2D4E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D4E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E86
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E86#FFFFFF#000000##FFFFFF
##2D4E861.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355388
Deuteranopia (green-blind)
#284B85
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4e86;
/* rgb */ color: rgb(45, 78, 134);
/* oklch */ color: oklch(42.8% 0.101 260.3);
Tailwind
colors: {
  custom: {
    50: '#707fa9',
    500: '#2d4e86',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e86;
$custom-light: #707fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e86",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 134
  },
  "hsl": {
    "h": 217.753,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4281,
    "c": 0.10103,
    "h": 260.3
  },
  "luminance": 0.07728
}

Semantic roles & 50–950 ramp

primary
#2D4E86
secondary
#B1925E
accent
#A64FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4E86

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

Preview Lab → · Contrast checker → · Palette generator →

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