#2C4DC2#2C4DC2

#2C4DC2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.2% C 0.187 H 266.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2C4DC2
RGBrgb(44, 77, 194)
HSLhsl(227, 63%, 47%)
HSVhsv(227, 77%, 76%)
CMYKcmyk(77.3%, 60.3%, 0%, 23.9%)
CIE-LABlab(37.37, 30.38, -64.52)
CIE-LCHlch(37.37, 71.32, 295.21°)
OKLaboklab(47.16% -0.0105 -0.1865)
OKLCHoklch(47.16% 0.187 266.8)
XYZxyz(13.4268, 9.7367, 52.2002)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4DC2 #C2A12C
analogous
#2C98C2 #2C4DC2 #562CC2
triadic
#2C4DC2 #C22C4D #4DC22C
tetradic
#2C4DC2 #C22C98 #C2A12C #2CC256
square
#2C4DC2 #C22C98 #C2A12C #2CC256
split-complementary
#2C4DC2 #C2562C #98C22C
monochromatic
#15255E #213990 #2C4DC2 #5370D8 #859AE3

Accessibility & contrast

On white

7.12
#2C4DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2C4DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4DC2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4DC2#FFFFFF#000000##FFFFFF
##2C4DC21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c4dc2;
/* rgb */ color: rgb(44, 77, 194);
/* oklch */ color: oklch(47.2% 0.187 266.8);
Tailwind
colors: {
  custom: {
    50: '#7c7ed5',
    500: '#2c4dc2',
    950: '#000000',
  },
}
SCSS
$custom: #2c4dc2;
$custom-light: #7c7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4dc2",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 226.8,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47157,
    "c": 0.18678,
    "h": 266.8
  },
  "luminance": 0.09738
}

Semantic roles & 50–950 ramp

primary
#2C4DC2
secondary
#CDBB7D
accent
#C242E6
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2C4DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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