#2D56C2#2D56C2

#2D56C2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.0% C 0.176 H 264.8°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2D56C2
RGBrgb(45, 86, 194)
HSLhsl(223, 62%, 47%)
HSVhsv(223, 77%, 76%)
CMYKcmyk(76.8%, 55.7%, 0%, 23.9%)
CIE-LABlab(39.76, 24.62, -60.62)
CIE-LCHlch(39.76, 65.43, 292.10°)
OKLaboklab(48.96% -0.0158 -0.1749)
OKLCHoklch(48.96% 0.176 264.8)
XYZxyz(14.1441, 11.1069, 52.4269)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D56C2 #C2992D
analogous
#2DA1C2 #2D56C2 #4F2DC2
triadic
#2D56C2 #C22D56 #56C22D
tetradic
#2D56C2 #C22DA1 #C2992D #2DC24F
square
#2D56C2 #C22DA1 #C2992D #2DC24F
split-complementary
#2D56C2 #C24F2D #A1C22D
monochromatic
#162A5F #214090 #2D56C2 #5579D7 #86A0E3

Accessibility & contrast

On white

6.52
#2D56C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2D56C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D56C2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D56C2#FFFFFF#000000##FFFFFF
##2D56C21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2d56c2;
/* rgb */ color: rgb(45, 86, 194);
/* oklch */ color: oklch(49.0% 0.176 264.8);
Tailwind
colors: {
  custom: {
    50: '#7c85d5',
    500: '#2d56c2',
    950: '#000000',
  },
}
SCSS
$custom: #2d56c2;
$custom-light: #7c85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d56c2",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 223.49,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48961,
    "c": 0.17558,
    "h": 264.8
  },
  "luminance": 0.11109
}

Semantic roles & 50–950 ramp

primary
#2D56C2
secondary
#CDB77E
accent
#B942E5
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2D56C2

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

Preview Lab → · Contrast checker → · Palette generator →

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