#2C56AB#2C56AB

#2C56AB is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.144 H 262.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2C56AB
RGBrgb(44, 86, 171)
HSLhsl(220, 59%, 42%)
HSVhsv(220, 74%, 67%)
CMYKcmyk(74.3%, 49.7%, 0%, 32.9%)
CIE-LABlab(38.07, 15.75, -49.84)
CIE-LCHlch(38.07, 52.27, 287.54°)
OKLaboklab(47.15% -0.0189 -0.1432)
OKLCHoklch(47.15% 0.144 262.5)
XYZxyz(11.7146, 10.1300, 39.8581)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C56AB #AB812C
analogous
#2C96AB #2C56AB #412CAB
triadic
#2C56AB #AB2C56 #56AB2C
tetradic
#2C56AB #AB2C96 #AB812C #2CAB41
square
#2C56AB #AB2C96 #AB812C #2CAB41
split-complementary
#2C56AB #AB412C #96AB2C
monochromatic
#13254A #1F3E7A #2C56AB #4573CF #7697DC

Accessibility & contrast

On white

6.94
#2C56AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2C56AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C56AB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C56AB#FFFFFF#000000##FFFFFF
##2C56AB1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2c56ab;
/* rgb */ color: rgb(44, 86, 171);
/* oklch */ color: oklch(47.1% 0.144 262.5);
Tailwind
colors: {
  custom: {
    50: '#7785c5',
    500: '#2c56ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c56ab;
$custom-light: #7785c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c56ab",
  "rgb": {
    "r": 44,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 220.157,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47149,
    "c": 0.14441,
    "h": 262.5
  },
  "luminance": 0.10131
}

Semantic roles & 50–950 ramp

primary
#2C56AB
secondary
#C3A86F
accent
#AE46E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2C56AB

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

Preview Lab → · Contrast checker → · Palette generator →

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