#2D4EAB#2D4EAB

#2D4EAB is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.154 H 265.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2D4EAB
RGBrgb(45, 78, 171)
HSLhsl(224, 58%, 42%)
HSVhsv(224, 74%, 67%)
CMYKcmyk(73.7%, 54.4%, 0%, 32.9%)
CIE-LABlab(35.88, 21.18, -53.38)
CIE-LCHlch(35.88, 57.43, 291.64°)
OKLaboklab(45.49% -0.0114 -0.1537)
OKLCHoklch(45.49% 0.154 265.8)
XYZxyz(11.1547, 8.9458, 39.6590)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4EAB #AB8A2D
analogous
#2D8DAB #2D4EAB #4B2DAB
triadic
#2D4EAB #AB2D4E #4EAB2D
tetradic
#2D4EAB #AB2D8D #AB8A2D #2DAB4B
square
#2D4EAB #AB2D8D #AB8A2D #2DAB4B
split-complementary
#2D4EAB #AB4B2D #8DAB2D
monochromatic
#14224A #20387B #2D4EAB #476ACE #7791DB

Accessibility & contrast

On white

7.53
#2D4EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2D4EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4EAB
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4EAB#FFFFFF#000000##FFFFFF
##2D4EAB1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025AAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d4eab;
/* rgb */ color: rgb(45, 78, 171);
/* oklch */ color: oklch(45.5% 0.154 265.8);
Tailwind
colors: {
  custom: {
    50: '#777fc5',
    500: '#2d4eab',
    950: '#000000',
  },
}
SCSS
$custom: #2d4eab;
$custom-light: #777fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4eab",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 224.286,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.15414,
    "h": 265.8
  },
  "luminance": 0.08947
}

Semantic roles & 50–950 ramp

primary
#2D4EAB
secondary
#C3AE71
accent
#B946E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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