#2D5ED4#2D5ED4

#2D5ED4 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.0% C 0.190 H 263.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#2D5ED4
RGBrgb(45, 94, 212)
HSLhsl(222, 66%, 50%)
HSVhsv(222, 79%, 83%)
CMYKcmyk(78.8%, 55.7%, 0%, 16.9%)
CIE-LABlab(43.23, 26.20, -65.36)
CIE-LCHlch(43.23, 70.42, 291.84°)
OKLaboklab(52.01% -0.0201 -0.1887)
OKLCHoklch(52.01% 0.19 263.9)
XYZxyz(16.9643, 13.3148, 63.9505)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5ED4 #D4A32D
analogous
#2DB2D4 #2D5ED4 #4F2DD4
triadic
#2D5ED4 #D42D5E #5ED42D
tetradic
#2D5ED4 #D42DB2 #D4A32D #2DD44F
square
#2D5ED4 #D42DB2 #D4A32D #2DD44F
split-complementary
#2D5ED4 #D44F2D #B2D42D
monochromatic
#173170 #2147A3 #2D5ED4 #6085DE #93ACE9

Accessibility & contrast

On white

5.73
#2D5ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2D5ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5ED4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5ED4#FFFFFF#000000##FFFFFF
##2D5ED41.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2d5ed4;
/* rgb */ color: rgb(45, 94, 212);
/* oklch */ color: oklch(52.0% 0.190 263.9);
Tailwind
colors: {
  custom: {
    50: '#808be2',
    500: '#2d5ed4',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ed4;
$custom-light: #808be2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ed4",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 212
  },
  "hsl": {
    "h": 222.395,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52005,
    "c": 0.18975,
    "h": 263.9
  },
  "luminance": 0.13317
}

Semantic roles & 50–950 ramp

primary
#2D5ED4
secondary
#D4BE89
accent
#B73FE9
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B15
muted
#7D7C84

Preview Lab

Preview with #2D5ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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