#2D4E8B#2D4E8B

#2D4E8B is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.108 H 261.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2D4E8B
RGBrgb(45, 78, 139)
HSLhsl(219, 51%, 36%)
HSVhsv(219, 68%, 55%)
CMYKcmyk(67.6%, 43.9%, 0%, 45.5%)
CIE-LABlab(33.71, 9.02, -37.56)
CIE-LCHlch(33.71, 38.63, 283.50°)
OKLaboklab(43.14% -0.0159 -0.1072)
OKLCHoklch(43.14% 0.108 261.6)
XYZxyz(8.4651, 7.8699, 25.4940)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E8B #8B6A2D
analogous
#2D7D8B #2D4E8B #3B2D8B
triadic
#2D4E8B #8B2D4E #4E8B2D
tetradic
#2D4E8B #8B2D7D #8B6A2D #2D8B3B
square
#2D4E8B #8B2D7D #8B6A2D #2D8B3B
split-complementary
#2D4E8B #8B3B2D #7D8B2D
monochromatic
#0F1A2F #1E345D #2D4E8B #3C68B9 #658ACD

Accessibility & contrast

On white

8.16
#2D4E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2D4E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E8B
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E8B#FFFFFF#000000##FFFFFF
##2D4E8B1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548D
Deuteranopia (green-blind)
#224B8A
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4e8b;
/* rgb */ color: rgb(45, 78, 139);
/* oklch */ color: oklch(43.1% 0.108 261.6);
Tailwind
colors: {
  custom: {
    50: '#717fad',
    500: '#2d4e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e8b;
$custom-light: #717fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e8b",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 139
  },
  "hsl": {
    "h": 218.936,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43142,
    "c": 0.10835,
    "h": 261.6
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#2D4E8B
secondary
#B49660
accent
#A94DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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