#2D5EC7#2D5EC7

#2D5EC7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.0% C 0.173 H 262.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2D5EC7
RGBrgb(45, 94, 199)
HSLhsl(221, 63%, 48%)
HSVhsv(221, 77%, 78%)
CMYKcmyk(77.4%, 52.8%, 0%, 22%)
CIE-LABlab(42.28, 21.30, -59.42)
CIE-LCHlch(42.28, 63.12, 289.72°)
OKLaboklab(50.99% -0.0212 -0.1712)
OKLCHoklch(50.99% 0.173 262.9)
XYZxyz(15.3900, 12.6850, 55.6591)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EC7 #C7962D
analogous
#2DABC7 #2D5EC7 #492DC7
triadic
#2D5EC7 #C72D5E #5EC72D
tetradic
#2D5EC7 #C72DAB #C7962D #2DC749
square
#2D5EC7 #C72DAB #C7962D #2DC749
split-complementary
#2D5EC7 #C7492D #ABC72D
monochromatic
#162F63 #224695 #2D5EC7 #5881D9 #8AA7E5

Accessibility & contrast

On white

5.94
#2D5EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2D5EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EC7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EC7#FFFFFF#000000##FFFFFF
##2D5EC71.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6BCB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d5ec7;
/* rgb */ color: rgb(45, 94, 199);
/* oklch */ color: oklch(51.0% 0.173 262.9);
Tailwind
colors: {
  custom: {
    50: '#7d8bd9',
    500: '#2d5ec7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ec7;
$custom-light: #7d8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ec7",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 220.909,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50987,
    "c": 0.17252,
    "h": 262.9
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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