#2D5DD4#2D5DD4

#2D5DD4 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.8% C 0.191 H 264.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2D5DD4
RGBrgb(45, 93, 212)
HSLhsl(223, 66%, 50%)
HSVhsv(223, 79%, 83%)
CMYKcmyk(78.8%, 56.1%, 0%, 16.9%)
CIE-LABlab(42.97, 26.84, -65.79)
CIE-LCHlch(42.97, 71.06, 292.20°)
OKLaboklab(51.81% -0.0195 -0.1899)
OKLCHoklch(51.81% 0.191 264.1)
XYZxyz(16.8760, 13.1381, 63.9211)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5DD4 #D4A42D
analogous
#2DB1D4 #2D5DD4 #502DD4
triadic
#2D5DD4 #D42D5D #5DD42D
tetradic
#2D5DD4 #D42DB1 #D4A42D #2DD450
square
#2D5DD4 #D42DB1 #D4A42D #2DD450
split-complementary
#2D5DD4 #D4502D #B1D42D
monochromatic
#173070 #2146A3 #2D5DD4 #6084DE #93ABE9

Accessibility & contrast

On white

5.79
#2D5DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2D5DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5DD4
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5DD4#FFFFFF#000000##FFFFFF
##2D5DD41.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#007B8F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2d5dd4;
/* rgb */ color: rgb(45, 93, 212);
/* oklch */ color: oklch(51.8% 0.191 264.1);
Tailwind
colors: {
  custom: {
    50: '#808ae2',
    500: '#2d5dd4',
    950: '#000000',
  },
}
SCSS
$custom: #2d5dd4;
$custom-light: #808ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5dd4",
  "rgb": {
    "r": 45,
    "g": 93,
    "b": 212
  },
  "hsl": {
    "h": 222.754,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51806,
    "c": 0.19095,
    "h": 264.1
  },
  "luminance": 0.1314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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