#2D4ECC#2D4ECC

#2D4ECC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.198 H 267.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2D4ECC
RGBrgb(45, 78, 204)
HSLhsl(228, 64%, 49%)
HSVhsv(228, 78%, 80%)
CMYKcmyk(77.9%, 61.8%, 0%, 20%)
CIE-LABlab(38.49, 33.53, -68.50)
CIE-LCHlch(38.49, 76.26, 296.08°)
OKLaboklab(48.26% -0.0103 -0.1981)
OKLCHoklch(48.26% 0.198 267)
XYZxyz(14.7019, 10.3646, 58.3408)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4ECC #CCAB2D
analogous
#2D9ECC #2D4ECC #5C2DCC
triadic
#2D4ECC #CC2D4E #4ECC2D
tetradic
#2D4ECC #CC2D9E #CCAB2D #2DCC5C
square
#2D4ECC #CC2D9E #CCAB2D #2DCC5C
split-complementary
#2D4ECC #CC5C2D #9ECC2D
monochromatic
#172868 #223B9A #2D4ECC #5B76DB #8DA0E6

Accessibility & contrast

On white

6.83
#2D4ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2D4ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D4ECC
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4ECC#FFFFFF#000000##FFFFFF
##2D4ECC1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#006F85
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d4ecc;
/* rgb */ color: rgb(45, 78, 204);
/* oklch */ color: oklch(48.3% 0.198 267.0);
Tailwind
colors: {
  custom: {
    50: '#7f7fdd',
    500: '#2d4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #2d4ecc;
$custom-light: #7f7fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4ecc",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 227.547,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48259,
    "c": 0.19837,
    "h": 267
  },
  "luminance": 0.10366
}

Semantic roles & 50–950 ramp

primary
#2D4ECC
secondary
#D0C185
accent
#C441E7
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #2D4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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