#2C56A2#2C56A2

#2C56A2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.132 H 261.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2C56A2
RGBrgb(44, 86, 162)
HSLhsl(219, 57%, 40%)
HSVhsv(219, 73%, 64%)
CMYKcmyk(72.8%, 46.9%, 0%, 36.5%)
CIE-LABlab(37.48, 12.31, -45.44)
CIE-LCHlch(37.48, 47.08, 285.15°)
OKLaboklab(46.5% -0.0203 -0.1302)
OKLCHoklch(46.5% 0.132 261.2)
XYZxyz(10.8857, 9.7985, 35.4930)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C56A2 #A2782C
analogous
#2C91A2 #2C56A2 #3D2CA2
triadic
#2C56A2 #A22C56 #56A22C
tetradic
#2C56A2 #A22C91 #A2782C #2CA23D
square
#2C56A2 #A22C91 #A2782C #2CA23D
split-complementary
#2C56A2 #A23D2C #91A22C
monochromatic
#122342 #1F3C72 #2C56A2 #4072CB #7095D8

Accessibility & contrast

On white

7.09
#2C56A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2C56A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C56A2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C56A2#FFFFFF#000000##FFFFFF
##2C56A21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#1453A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c56a2;
/* rgb */ color: rgb(44, 86, 162);
/* oklch */ color: oklch(46.5% 0.132 261.2);
Tailwind
colors: {
  custom: {
    50: '#7585be',
    500: '#2c56a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c56a2;
$custom-light: #7585be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c56a2",
  "rgb": {
    "r": 44,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 218.644,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.1318,
    "h": 261.2
  },
  "luminance": 0.098
}

Semantic roles & 50–950 ramp

primary
#2C56A2
secondary
#BFA16A
accent
#AA47E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C56A2

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

Preview Lab → · Contrast checker → · Palette generator →

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