#2D4DC4#2D4DC4

#2D4DC4 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.4% C 0.189 H 267.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2D4DC4
RGBrgb(45, 77, 196)
HSLhsl(227, 63%, 47%)
HSVhsv(227, 77%, 77%)
CMYKcmyk(77%, 60.7%, 0%, 23.1%)
CIE-LABlab(37.57, 31.23, -65.35)
CIE-LCHlch(37.57, 72.43, 295.54°)
OKLaboklab(47.37% -0.0097 -0.1889)
OKLCHoklch(47.37% 0.189 267.1)
XYZxyz(13.6964, 9.8496, 53.3932)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4DC4 #C4A42D
analogous
#2D98C4 #2D4DC4 #592DC4
triadic
#2D4DC4 #C42D4D #4DC42D
tetradic
#2D4DC4 #C42D98 #C4A42D #2DC459
square
#2D4DC4 #C42D98 #C4A42D #2DC459
split-complementary
#2D4DC4 #C4592D #98C42D
monochromatic
#162660 #223992 #2D4DC4 #5672D8 #889BE4

Accessibility & contrast

On white

7.07
#2D4DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2D4DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4DC4
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4DC4#FFFFFF#000000##FFFFFF
##2D4DC41.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0052C2
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2d4dc4;
/* rgb */ color: rgb(45, 77, 196);
/* oklch */ color: oklch(47.4% 0.189 267.1);
Tailwind
colors: {
  custom: {
    50: '#7d7ed7',
    500: '#2d4dc4',
    950: '#000000',
  },
}
SCSS
$custom: #2d4dc4;
$custom-light: #7d7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4dc4",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 196
  },
  "hsl": {
    "h": 227.285,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47372,
    "c": 0.18914,
    "h": 267.1
  },
  "luminance": 0.09851
}

Semantic roles & 50–950 ramp

primary
#2D4DC4
secondary
#CDBD80
accent
#C342E6
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D4DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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