#2C56B8#2C56B8

#2C56B8 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.162 H 263.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2C56B8
RGBrgb(44, 86, 184)
HSLhsl(222, 61%, 45%)
HSVhsv(222, 76%, 72%)
CMYKcmyk(76.1%, 53.3%, 0%, 27.8%)
CIE-LABlab(38.99, 20.71, -56.03)
CIE-LCHlch(38.99, 59.74, 290.28°)
OKLaboklab(48.13% -0.0174 -0.1614)
OKLCHoklch(48.13% 0.162 263.9)
XYZxyz(13.0151, 10.6503, 46.7079)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C56B8 #B88E2C
analogous
#2C9CB8 #2C56B8 #482CB8
triadic
#2C56B8 #B82C56 #56B82C
tetradic
#2C56B8 #B82C9C #B88E2C #2CB848
square
#2C56B8 #B82C9C #B88E2C #2CB848
split-complementary
#2C56B8 #B8482C #9CB82C
monochromatic
#142855 #203F87 #2C56B8 #4D75D4 #7E9CE0

Accessibility & contrast

On white

6.71
#2C56B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2C56B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C56B8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C56B8#FFFFFF#000000##FFFFFF
##2C56B81.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C63BB
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2c56b8;
/* rgb */ color: rgb(44, 86, 184);
/* oklch */ color: oklch(48.1% 0.162 263.9);
Tailwind
colors: {
  custom: {
    50: '#7a85ce',
    500: '#2c56b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c56b8;
$custom-light: #7a85ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c56b8",
  "rgb": {
    "r": 44,
    "g": 86,
    "b": 184
  },
  "hsl": {
    "h": 222,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48132,
    "c": 0.16233,
    "h": 263.9
  },
  "luminance": 0.10652
}

Semantic roles & 50–950 ramp

primary
#2C56B8
secondary
#C9B077
accent
#B443E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2C56B8

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

Preview Lab → · Contrast checker → · Palette generator →

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