#2C56B2#2C56B2

#2C56B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.154 H 263.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2C56B2
RGBrgb(44, 86, 178)
HSLhsl(221, 60%, 44%)
HSVhsv(221, 75%, 70%)
CMYKcmyk(75.3%, 51.7%, 0%, 30.2%)
CIE-LABlab(38.56, 18.42, -53.20)
CIE-LCHlch(38.56, 56.30, 289.10°)
OKLaboklab(47.67% -0.018 -0.153)
OKLCHoklch(47.67% 0.154 263.3)
XYZxyz(12.3995, 10.4040, 43.4655)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C56B2 #B2882C
analogous
#2C99B2 #2C56B2 #452CB2
triadic
#2C56B2 #B22C56 #56B22C
tetradic
#2C56B2 #B22C99 #B2882C #2CB245
square
#2C56B2 #B22C99 #B2882C #2CB245
split-complementary
#2C56B2 #B2452C #99B22C
monochromatic
#142750 #203E81 #2C56B2 #4974D2 #7A9ADE

Accessibility & contrast

On white

6.82
#2C56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2C56B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C56B2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C56B2#FFFFFF#000000##FFFFFF
##2C56B21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c56b2;
/* rgb */ color: rgb(44, 86, 178);
/* oklch */ color: oklch(47.7% 0.154 263.3);
Tailwind
colors: {
  custom: {
    50: '#7885ca',
    500: '#2c56b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c56b2;
$custom-light: #7885ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c56b2",
  "rgb": {
    "r": 44,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 221.194,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47672,
    "c": 0.15411,
    "h": 263.3
  },
  "luminance": 0.10405
}

Semantic roles & 50–950 ramp

primary
#2C56B2
secondary
#C6AC73
accent
#B244E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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