#2A56C0#2A56C0

#2A56C0 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.7% C 0.174 H 264.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#2A56C0
RGBrgb(42, 86, 192)
HSLhsl(222, 64%, 46%)
HSVhsv(222, 78%, 75%)
CMYKcmyk(78.1%, 55.2%, 0%, 24.7%)
CIE-LABlab(39.50, 23.53, -59.88)
CIE-LCHlch(39.50, 64.34, 291.45°)
OKLaboklab(48.69% -0.0182 -0.1727)
OKLCHoklch(48.69% 0.174 264)
XYZxyz(13.7937, 10.9520, 51.2459)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56C0 #C0942A
analogous
#2AA1C0 #2A56C0 #492AC0
triadic
#2A56C0 #C02A56 #56C02A
tetradic
#2A56C0 #C02AA1 #C0942A #2AC049
square
#2A56C0 #C02AA1 #C0942A #2AC049
split-complementary
#2A56C0 #C0492A #A1C02A
monochromatic
#14295C #1F408E #2A56C0 #4F77D8 #819EE3

Accessibility & contrast

On white

6.58
#2A56C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2A56C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56C0
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56C0#FFFFFF#000000##FFFFFF
##2A56C01.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C4
Deuteranopia (green-blind)
#0056BE
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a56c0;
/* rgb */ color: rgb(42, 86, 192);
/* oklch */ color: oklch(48.7% 0.174 264.0);
Tailwind
colors: {
  custom: {
    50: '#7b85d4',
    500: '#2a56c0',
    950: '#000000',
  },
}
SCSS
$custom: #2a56c0;
$custom-light: #7b85d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56c0",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 192
  },
  "hsl": {
    "h": 222.4,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48687,
    "c": 0.1737,
    "h": 264
  },
  "luminance": 0.10954
}

Semantic roles & 50–950 ramp

primary
#2A56C0
secondary
#CCB47A
accent
#B641E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A56C0

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

Preview Lab → · Contrast checker → · Palette generator →

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