#2D5FC8#2D5FC8

#2D5FC8 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.173 H 262.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#2D5FC8
RGBrgb(45, 95, 200)
HSLhsl(221, 63%, 48%)
HSVhsv(221, 78%, 78%)
CMYKcmyk(77.5%, 52.5%, 0%, 21.6%)
CIE-LABlab(42.63, 21.03, -59.45)
CIE-LCHlch(42.63, 63.05, 289.48°)
OKLaboklab(51.27% -0.0218 -0.1713)
OKLCHoklch(51.27% 0.173 262.7)
XYZxyz(15.5960, 12.9106, 56.3024)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5FC8 #C8962D
analogous
#2DACC8 #2D5FC8 #482DC8
triadic
#2D5FC8 #C82D5F #5FC82D
tetradic
#2D5FC8 #C82DAC #C8962D #2DC848
square
#2D5FC8 #C82DAC #C8962D #2DC848
split-complementary
#2D5FC8 #C8482D #ACC82D
monochromatic
#173064 #224796 #2D5FC8 #5982DA #8BA8E5

Accessibility & contrast

On white

5.86
#2D5FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2D5FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5FC8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5FC8#FFFFFF#000000##FFFFFF
##2D5FC81.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126CCC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#00798A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2d5fc8;
/* rgb */ color: rgb(45, 95, 200);
/* oklch */ color: oklch(51.3% 0.173 262.7);
Tailwind
colors: {
  custom: {
    50: '#7d8bd9',
    500: '#2d5fc8',
    950: '#000000',
  },
}
SCSS
$custom: #2d5fc8;
$custom-light: #7d8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5fc8",
  "rgb": {
    "r": 45,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 220.645,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51271,
    "c": 0.17265,
    "h": 262.7
  },
  "luminance": 0.12912
}

Semantic roles & 50–950 ramp

primary
#2D5FC8
secondary
#CFB682
accent
#B141E6
background
#F8F8FD
surface
#EFF0FB
border
#CACBD4
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2D5FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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