#2D4EA8#2D4EA8

#2D4EA8 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.150 H 265.5°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2D4EA8
RGBrgb(45, 78, 168)
HSLhsl(224, 58%, 42%)
HSVhsv(224, 73%, 66%)
CMYKcmyk(73.2%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.66, 20.04, -51.95)
CIE-LCHlch(35.66, 55.68, 291.09°)
OKLaboklab(45.26% -0.0117 -0.1495)
OKLCHoklch(45.26% 0.15 265.5)
XYZxyz(10.8720, 8.8327, 38.1701)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4EA8 #A8872D
analogous
#2D8CA8 #2D4EA8 #492DA8
triadic
#2D4EA8 #A82D4E #4EA82D
tetradic
#2D4EA8 #A82D8C #A8872D #2DA849
square
#2D4EA8 #A82D8C #A8872D #2DA849
split-complementary
#2D4EA8 #A8492D #8CA82D
monochromatic
#132147 #203878 #2D4EA8 #456ACD #7590DA

Accessibility & contrast

On white

7.59
#2D4EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2D4EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4EA8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4EA8#FFFFFF#000000##FFFFFF
##2D4EA81.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5AAB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d4ea8;
/* rgb */ color: rgb(45, 78, 168);
/* oklch */ color: oklch(45.3% 0.150 265.5);
Tailwind
colors: {
  custom: {
    50: '#777fc2',
    500: '#2d4ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2d4ea8;
$custom-light: #777fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4ea8",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 223.902,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45256,
    "c": 0.14996,
    "h": 265.5
  },
  "luminance": 0.08834
}

Semantic roles & 50–950 ramp

primary
#2D4EA8
secondary
#C2AC6F
accent
#B847E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2D4EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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