#2D5FB8#2D5FB8

#2D5FB8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.151 H 260.9°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#2D5FB8
RGBrgb(45, 95, 184)
HSLhsl(218, 61%, 45%)
HSVhsv(218, 76%, 72%)
CMYKcmyk(75.5%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.53, 14.95, -51.92)
CIE-LCHlch(41.53, 54.02, 286.06°)
OKLaboklab(50.09% -0.0239 -0.1491)
OKLCHoklch(50.09% 0.151 260.9)
XYZxyz(13.8230, 12.2014, 46.9647)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB8 #B8862D
analogous
#2DA5B8 #2D5FB8 #402DB8
triadic
#2D5FB8 #B82D5F #5FB82D
tetradic
#2D5FB8 #B82DA5 #B8862D #2DB840
square
#2D5FB8 #B82DA5 #B8862D #2DB840
split-complementary
#2D5FB8 #B8402D #A5B82D
monochromatic
#152C56 #214687 #2D5FB8 #4E7ED4 #80A2E0

Accessibility & contrast

On white

6.10
#2D5FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2D5FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FB8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB8#FFFFFF#000000##FFFFFF
##2D5FB81.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d5fb8;
/* rgb */ color: rgb(45, 95, 184);
/* oklch */ color: oklch(50.1% 0.151 260.9);
Tailwind
colors: {
  custom: {
    50: '#798bce',
    500: '#2d5fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb8;
$custom-light: #798bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb8",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 218.417,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50087,
    "c": 0.151,
    "h": 260.9
  },
  "luminance": 0.12203
}

Semantic roles & 50–950 ramp

primary
#2D5FB8
secondary
#C9AC78
accent
#AA44E4
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2D5FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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