#2D5FB5#2D5FB5

#2D5FB5 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.147 H 260.5°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#2D5FB5
RGBrgb(45, 95, 181)
HSLhsl(218, 60%, 44%)
HSVhsv(218, 75%, 71%)
CMYKcmyk(75.1%, 47.5%, 0%, 29%)
CIE-LABlab(41.34, 13.81, -50.48)
CIE-LCHlch(41.34, 52.33, 285.30°)
OKLaboklab(49.87% -0.0243 -0.1449)
OKLCHoklch(49.87% 0.147 260.5)
XYZxyz(13.5119, 12.0770, 45.3261)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB5 #B5832D
analogous
#2DA3B5 #2D5FB5 #3F2DB5
triadic
#2D5FB5 #B52D5F #5FB52D
tetradic
#2D5FB5 #B52DA3 #B5832D #2DB53F
square
#2D5FB5 #B52DA3 #B5832D #2DB53F
split-complementary
#2D5FB5 #B53F2D #A3B52D
monochromatic
#152C53 #214584 #2D5FB5 #4D7ED3 #7EA1DF

Accessibility & contrast

On white

6.15
#2D5FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2D5FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FB5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB5#FFFFFF#000000##FFFFFF
##2D5FB51.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#095CB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5fb5;
/* rgb */ color: rgb(45, 95, 181);
/* oklch */ color: oklch(49.9% 0.147 260.5);
Tailwind
colors: {
  custom: {
    50: '#798bcc',
    500: '#2d5fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb5;
$custom-light: #798bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb5",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 217.941,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49873,
    "c": 0.14689,
    "h": 260.5
  },
  "luminance": 0.12079
}

Semantic roles & 50–950 ramp

primary
#2D5FB5
secondary
#C7AA76
accent
#A944E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2D5FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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