#2D4FC4#2D4FC4

#2D4FC4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.8% C 0.187 H 266.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2D4FC4
RGBrgb(45, 79, 196)
HSLhsl(226, 63%, 47%)
HSVhsv(226, 77%, 77%)
CMYKcmyk(77%, 59.7%, 0%, 23.1%)
CIE-LABlab(38.08, 29.93, -64.52)
CIE-LCHlch(38.08, 71.12, 294.89°)
OKLaboklab(47.75% -0.011 -0.1864)
OKLCHoklch(47.75% 0.187 266.6)
XYZxyz(13.8385, 10.1338, 53.4405)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4FC4 #C4A22D
analogous
#2D9BC4 #2D4FC4 #562DC4
triadic
#2D4FC4 #C42D4F #4FC42D
tetradic
#2D4FC4 #C42D9B #C4A22D #2DC456
square
#2D4FC4 #C42D9B #C4A22D #2DC456
split-complementary
#2D4FC4 #C4562D #9BC42D
monochromatic
#162760 #223B92 #2D4FC4 #5673D8 #889CE4

Accessibility & contrast

On white

6.94
#2D4FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2D4FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D4FC4
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4FC4#FFFFFF#000000##FFFFFF
##2D4FC41.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d4fc4;
/* rgb */ color: rgb(45, 79, 196);
/* oklch */ color: oklch(47.8% 0.187 266.6);
Tailwind
colors: {
  custom: {
    50: '#7d80d7',
    500: '#2d4fc4',
    950: '#000000',
  },
}
SCSS
$custom: #2d4fc4;
$custom-light: #7d80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4fc4",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 196
  },
  "hsl": {
    "h": 226.49,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47752,
    "c": 0.18674,
    "h": 266.6
  },
  "luminance": 0.10135
}

Semantic roles & 50–950 ramp

primary
#2D4FC4
secondary
#CDBC80
accent
#C142E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2D4FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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