#2A56B7#2A56B7

#2A56B7 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.162 H 263.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#2A56B7
RGBrgb(42, 86, 183)
HSLhsl(221, 63%, 44%)
HSVhsv(221, 77%, 72%)
CMYKcmyk(77%, 53%, 0%, 28.2%)
CIE-LABlab(38.84, 20.09, -55.69)
CIE-LCHlch(38.84, 59.20, 289.84°)
OKLaboklab(47.98% -0.019 -0.1604)
OKLCHoklch(47.98% 0.162 263.3)
XYZxyz(12.8268, 10.5653, 46.1538)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56B7 #B78B2A
analogous
#2A9DB7 #2A56B7 #452AB7
triadic
#2A56B7 #B72A56 #56B72A
tetradic
#2A56B7 #B72A9D #B78B2A #2AB745
square
#2A56B7 #B72A9D #B78B2A #2AB745
split-complementary
#2A56B7 #B7452A #9DB72A
monochromatic
#132753 #1F3F85 #2A56B7 #4975D5 #7B9BE1

Accessibility & contrast

On white

6.75
#2A56B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2A56B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56B7
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56B7#FFFFFF#000000##FFFFFF
##2A56B71.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E62BA
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a56b7;
/* rgb */ color: rgb(42, 86, 183);
/* oklch */ color: oklch(48.0% 0.162 263.3);
Tailwind
colors: {
  custom: {
    50: '#7985cd',
    500: '#2a56b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a56b7;
$custom-light: #7985cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56b7",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 221.277,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47977,
    "c": 0.16154,
    "h": 263.3
  },
  "luminance": 0.10567
}

Semantic roles & 50–950 ramp

primary
#2A56B7
secondary
#C9AE74
accent
#B342E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B14
muted
#7C7C82

Preview Lab

Preview with #2A56B7

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

Preview Lab → · Contrast checker → · Palette generator →

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