#2D5EC8#2D5EC8

#2D5EC8 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.174 H 263.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#2D5EC8
RGBrgb(45, 94, 200)
HSLhsl(221, 63%, 48%)
HSVhsv(221, 78%, 78%)
CMYKcmyk(77.5%, 53%, 0%, 21.6%)
CIE-LABlab(42.36, 21.67, -59.89)
CIE-LCHlch(42.36, 63.69, 289.90°)
OKLaboklab(51.06% -0.0211 -0.1726)
OKLCHoklch(51.06% 0.174 263)
XYZxyz(15.5065, 12.7316, 56.2726)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EC8 #C8972D
analogous
#2DABC8 #2D5EC8 #492DC8
triadic
#2D5EC8 #C82D5E #5EC82D
tetradic
#2D5EC8 #C82DAB #C8972D #2DC849
square
#2D5EC8 #C82DAB #C8972D #2DC849
split-complementary
#2D5EC8 #C8492D #ABC82D
monochromatic
#172F64 #224796 #2D5EC8 #5981DA #8BA7E5

Accessibility & contrast

On white

5.92
#2D5EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2D5EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EC8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EC8#FFFFFF#000000##FFFFFF
##2D5EC81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B6BCC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d5ec8;
/* rgb */ color: rgb(45, 94, 200);
/* oklch */ color: oklch(51.1% 0.174 263.0);
Tailwind
colors: {
  custom: {
    50: '#7d8bd9',
    500: '#2d5ec8',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ec8;
$custom-light: #7d8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ec8",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 200
  },
  "hsl": {
    "h": 221.032,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51064,
    "c": 0.17386,
    "h": 263
  },
  "luminance": 0.12733
}

Semantic roles & 50–950 ramp

primary
#2D5EC8
secondary
#CFB782
accent
#B241E6
background
#F8F8FD
surface
#EFF0FB
border
#CACBD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2D5EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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