#2D5FA8#2D5FA8

#2D5FA8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.0% C 0.129 H 258.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2D5FA8
RGBrgb(45, 95, 168)
HSLhsl(216, 58%, 42%)
HSVhsv(216, 73%, 66%)
CMYKcmyk(73.2%, 43.5%, 0%, 34.1%)
CIE-LABlab(40.52, 8.87, -44.13)
CIE-LCHlch(40.52, 45.01, 281.36°)
OKLaboklab(48.98% -0.0267 -0.1262)
OKLCHoklch(48.98% 0.129 258.1)
XYZxyz(12.2397, 11.5681, 38.6260)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FA8 #A8762D
analogous
#2D9DA8 #2D5FA8 #392DA8
triadic
#2D5FA8 #A82D5F #5FA82D
tetradic
#2D5FA8 #A82D9D #A8762D #2DA839
square
#2D5FA8 #A82D9D #A8762D #2DA839
split-complementary
#2D5FA8 #A8392D #9DA82D
monochromatic
#132847 #204478 #2D5FA8 #457CCD #759EDA

Accessibility & contrast

On white

6.34
#2D5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2D5FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FA8
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FA8#FFFFFF#000000##FFFFFF
##2D5FA81.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AB
Deuteranopia (green-blind)
#255AA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5fa8;
/* rgb */ color: rgb(45, 95, 168);
/* oklch */ color: oklch(49.0% 0.129 258.1);
Tailwind
colors: {
  custom: {
    50: '#768bc2',
    500: '#2d5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fa8;
$custom-light: #768bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fa8",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 215.61,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4898,
    "c": 0.12899,
    "h": 258.1
  },
  "luminance": 0.11569
}

Semantic roles & 50–950 ramp

primary
#2D5FA8
secondary
#C2A06F
accent
#A247E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2D5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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