#2A56B1#2A56B1

#2A56B1 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.5% C 0.153 H 262.6°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2A56B1
RGBrgb(42, 86, 177)
HSLhsl(220, 62%, 43%)
HSVhsv(220, 76%, 69%)
CMYKcmyk(76.3%, 51.4%, 0%, 30.6%)
CIE-LABlab(38.41, 17.79, -52.85)
CIE-LCHlch(38.41, 55.76, 288.61°)
OKLaboklab(47.52% -0.0196 -0.152)
OKLCHoklch(47.52% 0.153 262.6)
XYZxyz(12.2156, 10.3208, 42.9348)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56B1 #B1852A
analogous
#2A9AB1 #2A56B1 #412AB1
triadic
#2A56B1 #B12A56 #56B12A
tetradic
#2A56B1 #B12A9A #B1852A #2AB141
square
#2A56B1 #B12A9A #B1852A #2AB141
split-complementary
#2A56B1 #B1412A #9AB12A
monochromatic
#13264E #1E3E80 #2A56B1 #4573D3 #7799DF

Accessibility & contrast

On white

6.85
#2A56B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2A56B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56B1
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56B1#FFFFFF#000000##FFFFFF
##2A56B11.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C61B4
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a56b1;
/* rgb */ color: rgb(42, 86, 177);
/* oklch */ color: oklch(47.5% 0.153 262.6);
Tailwind
colors: {
  custom: {
    50: '#7785c9',
    500: '#2a56b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a56b1;
$custom-light: #7785c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56b1",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 177
  },
  "hsl": {
    "h": 220.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47517,
    "c": 0.15331,
    "h": 262.6
  },
  "luminance": 0.10322
}

Semantic roles & 50–950 ramp

primary
#2A56B1
secondary
#C6AA70
accent
#B043E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A56B1

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

Preview Lab → · Contrast checker → · Palette generator →

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