#2D4E8A#2D4E8A

#2D4E8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.1% C 0.107 H 261.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2D4E8A
RGBrgb(45, 78, 138)
HSLhsl(219, 51%, 36%)
HSVhsv(219, 67%, 54%)
CMYKcmyk(67.4%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.65, 8.64, -37.05)
CIE-LCHlch(33.65, 38.04, 283.13°)
OKLaboklab(43.07% -0.0161 -0.1057)
OKLCHoklch(43.07% 0.107 261.3)
XYZxyz(8.3924, 7.8408, 25.1110)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E8A #8A692D
analogous
#2D7C8A #2D4E8A #3A2D8A
triadic
#2D4E8A #8A2D4E #4E8A2D
tetradic
#2D4E8A #8A2D7C #8A692D #2D8A3A
square
#2D4E8A #8A2D7C #8A692D #2D8A3A
split-complementary
#2D4E8A #8A3A2D #7C8A2D
monochromatic
#0F1A2E #1E345C #2D4E8A #3C68B8 #658ACD

Accessibility & contrast

On white

8.18
#2D4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4E8A
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E8A#FFFFFF#000000##FFFFFF
##2D4E8A1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#244B89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4e8a;
/* rgb */ color: rgb(45, 78, 138);
/* oklch */ color: oklch(43.1% 0.107 261.3);
Tailwind
colors: {
  custom: {
    50: '#707fac',
    500: '#2d4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e8a;
$custom-light: #707fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e8a",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 218.71,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43074,
    "c": 0.10689,
    "h": 261.3
  },
  "luminance": 0.07842
}

Semantic roles & 50–950 ramp

primary
#2D4E8A
secondary
#B39660
accent
#A84DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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