#2D5FB6#2D5FB6

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

Color values

HEX#2D5FB6
RGBrgb(45, 95, 182)
HSLhsl(218, 60%, 45%)
HSVhsv(218, 75%, 71%)
CMYKcmyk(75.3%, 47.8%, 0%, 28.6%)
CIE-LABlab(41.40, 14.19, -50.96)
CIE-LCHlch(41.40, 52.89, 285.56°)
OKLaboklab(49.94% -0.0242 -0.1463)
OKLCHoklch(49.94% 0.148 260.6)
XYZxyz(13.6148, 12.1182, 45.8684)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FB6 #B6842D
analogous
#2DA4B6 #2D5FB6 #402DB6
triadic
#2D5FB6 #B62D5F #5FB62D
tetradic
#2D5FB6 #B62DA4 #B6842D #2DB640
square
#2D5FB6 #B62DA4 #B6842D #2DB640
split-complementary
#2D5FB6 #B6402D #A4B62D
monochromatic
#152C54 #214585 #2D5FB6 #4D7ED3 #7EA2DF

Accessibility & contrast

On white

6.13
#2D5FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D5FB6
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FB6#FFFFFF#000000##FFFFFF
##2D5FB61.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F68B9
Deuteranopia (green-blind)
#055CB4
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2d5fb6;
/* rgb */ color: rgb(45, 95, 182);
/* oklch */ color: oklch(49.9% 0.148 260.6);
Tailwind
colors: {
  custom: {
    50: '#798bcc',
    500: '#2d5fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fb6;
$custom-light: #798bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fb6",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 218.102,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49944,
    "c": 0.14826,
    "h": 260.6
  },
  "luminance": 0.1212
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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