#2D4FB8#2D4FB8

#2D4FB8 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.171 H 266.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#2D4FB8
RGBrgb(45, 79, 184)
HSLhsl(225, 61%, 45%)
HSVhsv(225, 76%, 72%)
CMYKcmyk(75.5%, 57.1%, 0%, 27.8%)
CIE-LABlab(37.13, 25.44, -59.04)
CIE-LCHlch(37.13, 64.29, 293.31°)
OKLaboklab(46.74% -0.0114 -0.1703)
OKLCHoklch(46.74% 0.171 266.2)
XYZxyz(12.5269, 9.6092, 46.5327)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4FB8 #B8962D
analogous
#2D94B8 #2D4FB8 #512DB8
triadic
#2D4FB8 #B82D4F #4FB82D
tetradic
#2D4FB8 #B82D94 #B8962D #2DB851
square
#2D4FB8 #B82D94 #B8962D #2DB851
split-complementary
#2D4FB8 #B8512D #94B82D
monochromatic
#152556 #213A87 #2D4FB8 #4E6FD4 #8097E0

Accessibility & contrast

On white

7.19
#2D4FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2D4FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4FB8
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4FB8#FFFFFF#000000##FFFFFF
##2D4FB81.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d4fb8;
/* rgb */ color: rgb(45, 79, 184);
/* oklch */ color: oklch(46.7% 0.171 266.2);
Tailwind
colors: {
  custom: {
    50: '#7a7fce',
    500: '#2d4fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2d4fb8;
$custom-light: #7a7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4fb8",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 225.324,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46744,
    "c": 0.17072,
    "h": 266.2
  },
  "luminance": 0.09611
}

Semantic roles & 50–950 ramp

primary
#2D4FB8
secondary
#C9B578
accent
#BD44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2D4FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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