#2C56B5#2C56B5

#2C56B5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.158 H 263.6°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2C56B5
RGBrgb(44, 86, 181)
HSLhsl(222, 61%, 44%)
HSVhsv(222, 76%, 71%)
CMYKcmyk(75.7%, 52.5%, 0%, 29%)
CIE-LABlab(38.77, 19.57, -54.62)
CIE-LCHlch(38.77, 58.02, 289.71°)
OKLaboklab(47.9% -0.0177 -0.1572)
OKLCHoklch(47.9% 0.158 263.6)
XYZxyz(12.7040, 10.5258, 45.0693)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C56B5 #B58B2C
analogous
#2C9BB5 #2C56B5 #472CB5
triadic
#2C56B5 #B52C56 #56B52C
tetradic
#2C56B5 #B52C9B #B58B2C #2CB547
square
#2C56B5 #B52C9B #B58B2C #2CB547
split-complementary
#2C56B5 #B5472C #9BB52C
monochromatic
#142753 #203F84 #2C56B5 #4B75D3 #7C9BDF

Accessibility & contrast

On white

6.76
#2C56B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2C56B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C56B5
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C56B5#FFFFFF#000000##FFFFFF
##2C56B51.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1462B8
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c56b5;
/* rgb */ color: rgb(44, 86, 181);
/* oklch */ color: oklch(47.9% 0.158 263.6);
Tailwind
colors: {
  custom: {
    50: '#7985cc',
    500: '#2c56b5',
    950: '#000000',
  },
}
SCSS
$custom: #2c56b5;
$custom-light: #7985cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c56b5",
  "rgb": {
    "r": 44,
    "g": 86,
    "b": 181
  },
  "hsl": {
    "h": 221.606,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47901,
    "c": 0.15823,
    "h": 263.6
  },
  "luminance": 0.10527
}

Semantic roles & 50–950 ramp

primary
#2C56B5
secondary
#C8AE75
accent
#B344E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C56B5

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

Preview Lab → · Contrast checker → · Palette generator →

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