#2D56C4#2D56C4

#2D56C4 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.1% C 0.178 H 265.0°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#2D56C4
RGBrgb(45, 86, 196)
HSLhsl(224, 63%, 47%)
HSVhsv(224, 77%, 77%)
CMYKcmyk(77%, 56.1%, 0%, 23.1%)
CIE-LABlab(39.91, 25.37, -61.54)
CIE-LCHlch(39.91, 66.56, 292.41°)
OKLaboklab(49.12% -0.0157 -0.1776)
OKLCHoklch(49.12% 0.178 265)
XYZxyz(14.3703, 11.1974, 53.6178)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56C4 #C49B2D
analogous
#2DA1C4 #2D56C4 #502DC4
triadic
#2D56C4 #C42D56 #56C42D
tetradic
#2D56C4 #C42DA1 #C49B2D #2DC450
square
#2D56C4 #C42DA1 #C49B2D #2DC450
split-complementary
#2D56C4 #C4502D #A1C42D
monochromatic
#162A60 #224092 #2D56C4 #5679D8 #88A1E4

Accessibility & contrast

On white

6.48
#2D56C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2D56C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D56C4
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56C4#FFFFFF#000000##FFFFFF
##2D56C41.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2d56c4;
/* rgb */ color: rgb(45, 86, 196);
/* oklch */ color: oklch(49.1% 0.178 265.0);
Tailwind
colors: {
  custom: {
    50: '#7d85d7',
    500: '#2d56c4',
    950: '#000000',
  },
}
SCSS
$custom: #2d56c4;
$custom-light: #7d85d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56c4",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 223.709,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49122,
    "c": 0.17826,
    "h": 265
  },
  "luminance": 0.11199
}

Semantic roles & 50–950 ramp

primary
#2D56C4
secondary
#CDB880
accent
#B942E6
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2D56C4

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

Preview Lab → · Contrast checker → · Palette generator →

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