#2D5DC7#2D5DC7

#2D5DC7 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.174 H 263.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#2D5DC7
RGBrgb(45, 93, 199)
HSLhsl(221, 63%, 48%)
HSVhsv(221, 77%, 78%)
CMYKcmyk(77.4%, 53.3%, 0%, 22%)
CIE-LABlab(42.01, 21.95, -59.86)
CIE-LCHlch(42.01, 63.76, 290.13°)
OKLaboklab(50.78% -0.0205 -0.1725)
OKLCHoklch(50.78% 0.174 263.2)
XYZxyz(15.3017, 12.5084, 55.6297)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5DC7 #C7972D
analogous
#2DAAC7 #2D5DC7 #4A2DC7
triadic
#2D5DC7 #C72D5D #5DC72D
tetradic
#2D5DC7 #C72DAA #C7972D #2DC74A
square
#2D5DC7 #C72DAA #C7972D #2DC74A
split-complementary
#2D5DC7 #C74A2D #AAC72D
monochromatic
#162E63 #224695 #2D5DC7 #5880D9 #8AA6E5

Accessibility & contrast

On white

6.00
#2D5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#2D5DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5DC7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5DC7#FFFFFF#000000##FFFFFF
##2D5DC71.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076BCB
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2d5dc7;
/* rgb */ color: rgb(45, 93, 199);
/* oklch */ color: oklch(50.8% 0.174 263.2);
Tailwind
colors: {
  custom: {
    50: '#7d8ad9',
    500: '#2d5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5dc7;
$custom-light: #7d8ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5dc7",
  "rgb": {
    "r": 45,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 221.299,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50781,
    "c": 0.17373,
    "h": 263.2
  },
  "luminance": 0.1251
}

Semantic roles & 50–950 ramp

primary
#2D5DC7
secondary
#CEB681
accent
#B342E6
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2D5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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