#2A56C2#2A56C2

#2A56C2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.8% C 0.176 H 264.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#2A56C2
RGBrgb(42, 86, 194)
HSLhsl(223, 64%, 46%)
HSVhsv(223, 78%, 76%)
CMYKcmyk(78.4%, 55.7%, 0%, 23.9%)
CIE-LABlab(39.65, 24.29, -60.80)
CIE-LCHlch(39.65, 65.48, 291.78°)
OKLaboklab(48.85% -0.018 -0.1755)
OKLCHoklch(48.85% 0.176 264.1)
XYZxyz(14.0168, 11.0412, 52.4209)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56C2 #C2962A
analogous
#2AA2C2 #2A56C2 #4A2AC2
triadic
#2A56C2 #C22A56 #56C22A
tetradic
#2A56C2 #C22AA2 #C2962A #2AC24A
square
#2A56C2 #C22AA2 #C2962A #2AC24A
split-complementary
#2A56C2 #C24A2A #A2C22A
monochromatic
#14295D #1F4090 #2A56C2 #5078D9 #829FE4

Accessibility & contrast

On white

6.54
#2A56C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2A56C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56C2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56C2#FFFFFF#000000##FFFFFF
##2A56C21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a56c2;
/* rgb */ color: rgb(42, 86, 194);
/* oklch */ color: oklch(48.8% 0.176 264.1);
Tailwind
colors: {
  custom: {
    50: '#7b85d5',
    500: '#2a56c2',
    950: '#000000',
  },
}
SCSS
$custom: #2a56c2;
$custom-light: #7b85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56c2",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 222.632,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48847,
    "c": 0.17638,
    "h": 264.1
  },
  "luminance": 0.11043
}

Semantic roles & 50–950 ramp

primary
#2A56C2
secondary
#CDB57B
accent
#B740E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A56C2

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

Preview Lab → · Contrast checker → · Palette generator →

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