#2A56B0#2A56B0

#2A56B0 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.152 H 262.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2A56B0
RGBrgb(42, 86, 176)
HSLhsl(220, 61%, 43%)
HSVhsv(220, 76%, 69%)
CMYKcmyk(76.1%, 51.1%, 0%, 31%)
CIE-LABlab(38.34, 17.41, -52.37)
CIE-LCHlch(38.34, 55.19, 288.39°)
OKLaboklab(47.44% -0.0198 -0.1506)
OKLCHoklch(47.44% 0.152 262.5)
XYZxyz(12.1163, 10.2810, 42.4118)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56B0 #B0842A
analogous
#2A99B0 #2A56B0 #412AB0
triadic
#2A56B0 #B02A56 #56B02A
tetradic
#2A56B0 #B02A99 #B0842A #2AB041
square
#2A56B0 #B02A99 #B0842A #2AB041
split-complementary
#2A56B0 #B0412A #99B02A
monochromatic
#12264D #1E3E7F #2A56B0 #4573D3 #7698DE

Accessibility & contrast

On white

6.87
#2A56B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A56B0
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56B0#FFFFFF#000000##FFFFFF
##2A56B01.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D61B3
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a56b0;
/* rgb */ color: rgb(42, 86, 176);
/* oklch */ color: oklch(47.4% 0.152 262.5);
Tailwind
colors: {
  custom: {
    50: '#7785c8',
    500: '#2a56b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a56b0;
$custom-light: #7785c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56b0",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 176
  },
  "hsl": {
    "h": 220.299,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47442,
    "c": 0.15194,
    "h": 262.5
  },
  "luminance": 0.10282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A56B0

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

Preview Lab → · Contrast checker → · Palette generator →

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