#2D5FB4#2D5FB4

#2D5FB4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.146 H 260.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#2D5FB4
RGBrgb(45, 95, 180)
HSLhsl(218, 60%, 44%)
HSVhsv(218, 75%, 71%)
CMYKcmyk(75%, 47.2%, 0%, 29.4%)
CIE-LABlab(41.27, 13.42, -49.99)
CIE-LCHlch(41.27, 51.76, 285.03°)
OKLaboklab(49.8% -0.0245 -0.1434)
OKLCHoklch(49.8% 0.146 260.3)
XYZxyz(13.4096, 12.0361, 44.7876)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB4 #B4822D
analogous
#2DA3B4 #2D5FB4 #3F2DB4
triadic
#2D5FB4 #B42D5F #5FB42D
tetradic
#2D5FB4 #B42DA3 #B4822D #2DB43F
square
#2D5FB4 #B42DA3 #B4822D #2DB43F
split-complementary
#2D5FB4 #B43F2D #A3B42D
monochromatic
#152B52 #214583 #2D5FB4 #4C7ED2 #7DA1DE

Accessibility & contrast

On white

6.16
#2D5FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2D5FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FB4
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB4#FFFFFF#000000##FFFFFF
##2D5FB41.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3168B7
Deuteranopia (green-blind)
#0D5CB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5fb4;
/* rgb */ color: rgb(45, 95, 180);
/* oklch */ color: oklch(49.8% 0.146 260.3);
Tailwind
colors: {
  custom: {
    50: '#798bcb',
    500: '#2d5fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb4;
$custom-light: #798bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb4",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 217.778,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49803,
    "c": 0.14552,
    "h": 260.3
  },
  "luminance": 0.12038
}

Semantic roles & 50–950 ramp

primary
#2D5FB4
secondary
#C7A976
accent
#A845E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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