#2D5DCC#2D5DCC

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

Color values

HEX#2D5DCC
RGBrgb(45, 93, 204)
HSLhsl(222, 64%, 49%)
HSVhsv(222, 78%, 80%)
CMYKcmyk(77.9%, 54.4%, 0%, 20%)
CIE-LABlab(42.38, 23.83, -62.16)
CIE-LCHlch(42.38, 66.58, 290.98°)
OKLaboklab(51.17% -0.02 -0.1793)
OKLCHoklch(51.17% 0.18 263.6)
XYZxyz(15.8917, 12.7444, 58.7374)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5DCC #CC9C2D
analogous
#2DADCC #2D5DCC #4D2DCC
triadic
#2D5DCC #CC2D5D #5DCC2D
tetradic
#2D5DCC #CC2DAD #CC9C2D #2DCC4D
square
#2D5DCC #CC2DAD #CC9C2D #2DCC4D
split-complementary
#2D5DCC #CC4D2D #ADCC2D
monochromatic
#172F68 #22469A #2D5DCC #5B82DB #8DA8E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5DCC#FFFFFF#000000##FFFFFF
##2D5DCC1.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)
#006CD0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#00788B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d5dcc;
/* rgb */ color: rgb(45, 93, 204);
/* oklch */ color: oklch(51.2% 0.180 263.6);
Tailwind
colors: {
  custom: {
    50: '#7e8adc',
    500: '#2d5dcc',
    950: '#000000',
  },
}
SCSS
$custom: #2d5dcc;
$custom-light: #7e8adc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5dcc",
  "rgb": {
    "r": 45,
    "g": 93,
    "b": 204
  },
  "hsl": {
    "h": 221.887,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5117,
    "c": 0.1804,
    "h": 263.6
  },
  "luminance": 0.12746
}

Semantic roles & 50–950 ramp

primary
#2D5DCC
secondary
#D0B985
accent
#B541E7
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2D5DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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