#2D5FB1#2D5FB1

#2D5FB1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.141 H 259.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#2D5FB1
RGBrgb(45, 95, 177)
HSLhsl(217, 59%, 44%)
HSVhsv(217, 75%, 69%)
CMYKcmyk(74.6%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.08, 12.28, -48.54)
CIE-LCHlch(41.08, 50.07, 284.20°)
OKLaboklab(49.59% -0.025 -0.1392)
OKLCHoklch(49.59% 0.141 259.8)
XYZxyz(13.1073, 11.9152, 43.1955)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB1 #B17F2D
analogous
#2DA1B1 #2D5FB1 #3D2DB1
triadic
#2D5FB1 #B12D5F #5FB12D
tetradic
#2D5FB1 #B12DA1 #B17F2D #2DB13D
square
#2D5FB1 #B12DA1 #B17F2D #2DB13D
split-complementary
#2D5FB1 #B13D2D #A1B12D
monochromatic
#142B4F #214580 #2D5FB1 #4A7DD1 #7BA0DD

Accessibility & contrast

On white

6.21
#2D5FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2D5FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FB1
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB1#FFFFFF#000000##FFFFFF
##2D5FB11.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#165BAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5fb1;
/* rgb */ color: rgb(45, 95, 177);
/* oklch */ color: oklch(49.6% 0.141 259.8);
Tailwind
colors: {
  custom: {
    50: '#788bc9',
    500: '#2d5fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb1;
$custom-light: #788bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb1",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 217.273,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49593,
    "c": 0.1414,
    "h": 259.8
  },
  "luminance": 0.11917
}

Semantic roles & 50–950 ramp

primary
#2D5FB1
secondary
#C6A774
accent
#A745E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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