#2D4EC4#2D4EC4

#2D4EC4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.188 H 266.9°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#2D4EC4
RGBrgb(45, 78, 196)
HSLhsl(227, 63%, 47%)
HSVhsv(227, 77%, 77%)
CMYKcmyk(77%, 60.2%, 0%, 23.1%)
CIE-LABlab(37.83, 30.58, -64.94)
CIE-LCHlch(37.83, 71.77, 295.22°)
OKLaboklab(47.56% -0.0103 -0.1877)
OKLCHoklch(47.56% 0.188 266.9)
XYZxyz(13.7669, 9.9906, 53.4167)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4EC4 #C4A32D
analogous
#2D9AC4 #2D4EC4 #572DC4
triadic
#2D4EC4 #C42D4E #4EC42D
tetradic
#2D4EC4 #C42D9A #C4A32D #2DC457
square
#2D4EC4 #C42D9A #C4A32D #2DC457
split-complementary
#2D4EC4 #C4572D #9AC42D
monochromatic
#162660 #223A92 #2D4EC4 #5672D8 #889CE4

Accessibility & contrast

On white

7.00
#2D4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2D4EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D4EC4
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4EC4#FFFFFF#000000##FFFFFF
##2D4EC41.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4ec4;
/* rgb */ color: rgb(45, 78, 196);
/* oklch */ color: oklch(47.6% 0.188 266.9);
Tailwind
colors: {
  custom: {
    50: '#7d7fd7',
    500: '#2d4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #2d4ec4;
$custom-light: #7d7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4ec4",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 226.887,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47561,
    "c": 0.18794,
    "h": 266.9
  },
  "luminance": 0.09992
}

Semantic roles & 50–950 ramp

primary
#2D4EC4
secondary
#CDBC80
accent
#C242E6
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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