#2D4EB8#2D4EB8

#2D4EB8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.172 H 266.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2D4EB8
RGBrgb(45, 78, 184)
HSLhsl(226, 61%, 45%)
HSVhsv(226, 76%, 72%)
CMYKcmyk(75.5%, 57.6%, 0%, 27.8%)
CIE-LABlab(36.87, 26.09, -59.47)
CIE-LCHlch(36.87, 64.95, 293.69°)
OKLaboklab(46.55% -0.0106 -0.1716)
OKLCHoklch(46.55% 0.172 266.5)
XYZxyz(12.4553, 9.4660, 46.5088)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4EB8 #B8972D
analogous
#2D94B8 #2D4EB8 #512DB8
triadic
#2D4EB8 #B82D4E #4EB82D
tetradic
#2D4EB8 #B82D94 #B8972D #2DB851
square
#2D4EB8 #B82D94 #B8972D #2DB851
split-complementary
#2D4EB8 #B8512D #94B82D
monochromatic
#152456 #213987 #2D4EB8 #4E6ED4 #8096E0

Accessibility & contrast

On white

7.26
#2D4EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2D4EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4EB8
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4EB8#FFFFFF#000000##FFFFFF
##2D4EB81.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d4eb8;
/* rgb */ color: rgb(45, 78, 184);
/* oklch */ color: oklch(46.5% 0.172 266.5);
Tailwind
colors: {
  custom: {
    50: '#7a7fce',
    500: '#2d4eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2d4eb8;
$custom-light: #7a7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4eb8",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 225.755,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46546,
    "c": 0.17195,
    "h": 266.5
  },
  "luminance": 0.09467
}

Semantic roles & 50–950 ramp

primary
#2D4EB8
secondary
#C9B678
accent
#BE44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2D4EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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