#2D5FA6#2D5FA6

#2D5FA6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.8% C 0.126 H 257.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2D5FA6
RGBrgb(45, 95, 166)
HSLhsl(215, 57%, 41%)
HSVhsv(215, 73%, 65%)
CMYKcmyk(72.9%, 42.8%, 0%, 34.9%)
CIE-LABlab(40.40, 8.11, -43.14)
CIE-LCHlch(40.40, 43.89, 280.64°)
OKLaboklab(48.85% -0.0271 -0.1233)
OKLCHoklch(48.85% 0.126 257.6)
XYZxyz(12.0548, 11.4942, 37.6523)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FA6 #A6742D
analogous
#2D9CA6 #2D5FA6 #382DA6
triadic
#2D5FA6 #A62D5F #5FA62D
tetradic
#2D5FA6 #A62D9C #A6742D #2DA638
square
#2D5FA6 #A62D9C #A6742D #2DA638
split-complementary
#2D5FA6 #A6382D #9CA62D
monochromatic
#132846 #204376 #2D5FA6 #447CCC #749ED9

Accessibility & contrast

On white

6.37
#2D5FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2D5FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FA6
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FA6#FFFFFF#000000##FFFFFF
##2D5FA61.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D65A9
Deuteranopia (green-blind)
#285AA5
Tritanopia (blue-blind)
#00707A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5fa6;
/* rgb */ color: rgb(45, 95, 166);
/* oklch */ color: oklch(48.8% 0.126 257.6);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2d5fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fa6;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fa6",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 215.207,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48848,
    "c": 0.12623,
    "h": 257.6
  },
  "luminance": 0.11495
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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