#2D5FA7#2D5FA7

#2D5FA7 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.128 H 257.8°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2D5FA7
RGBrgb(45, 95, 167)
HSLhsl(215, 58%, 42%)
HSVhsv(215, 73%, 65%)
CMYKcmyk(73.1%, 43.1%, 0%, 34.5%)
CIE-LABlab(40.46, 8.49, -43.63)
CIE-LCHlch(40.46, 44.45, 281.01°)
OKLaboklab(48.91% -0.0269 -0.1247)
OKLCHoklch(48.91% 0.128 257.8)
XYZxyz(12.1469, 11.5310, 38.1373)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FA7 #A7752D
analogous
#2D9CA7 #2D5FA7 #382DA7
triadic
#2D5FA7 #A72D5F #5FA72D
tetradic
#2D5FA7 #A72D9C #A7752D #2DA738
square
#2D5FA7 #A72D9C #A7752D #2DA738
split-complementary
#2D5FA7 #A7382D #9CA72D
monochromatic
#132847 #204477 #2D5FA7 #447CCD #759EDA

Accessibility & contrast

On white

6.35
#2D5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D5FA7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FA7#FFFFFF#000000##FFFFFF
##2D5FA71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C65AA
Deuteranopia (green-blind)
#275AA6
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5fa7;
/* rgb */ color: rgb(45, 95, 167);
/* oklch */ color: oklch(48.9% 0.128 257.8);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2d5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fa7;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fa7",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 215.41,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48914,
    "c": 0.12761,
    "h": 257.8
  },
  "luminance": 0.11532
}

Semantic roles & 50–950 ramp

primary
#2D5FA7
secondary
#C19F6E
accent
#A247E1
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2D5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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