#2A56B9#2A56B9

#2A56B9 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.164 H 263.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#2A56B9
RGBrgb(42, 86, 185)
HSLhsl(222, 63%, 45%)
HSVhsv(222, 77%, 73%)
CMYKcmyk(77.3%, 53.5%, 0%, 27.5%)
CIE-LABlab(38.98, 20.86, -56.63)
CIE-LCHlch(38.98, 60.35, 290.22°)
OKLaboklab(48.13% -0.0188 -0.1632)
OKLCHoklch(48.13% 0.164 263.4)
XYZxyz(13.0365, 10.6491, 47.2580)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56B9 #B98D2A
analogous
#2A9EB9 #2A56B9 #452AB9
triadic
#2A56B9 #B92A56 #56B92A
tetradic
#2A56B9 #B92A9E #B98D2A #2AB945
square
#2A56B9 #B92A9E #B98D2A #2AB945
split-complementary
#2A56B9 #B9452A #9EB92A
monochromatic
#132855 #1F3F87 #2A56B9 #4A75D6 #7C9BE1

Accessibility & contrast

On white

6.71
#2A56B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2A56B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56B9
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56B9#FFFFFF#000000##FFFFFF
##2A56B91.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0763BC
Deuteranopia (green-blind)
#0056B7
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a56b9;
/* rgb */ color: rgb(42, 86, 185);
/* oklch */ color: oklch(48.1% 0.164 263.4);
Tailwind
colors: {
  custom: {
    50: '#7985cf',
    500: '#2a56b9',
    950: '#000000',
  },
}
SCSS
$custom: #2a56b9;
$custom-light: #7985cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56b9",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 185
  },
  "hsl": {
    "h": 221.538,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48133,
    "c": 0.16426,
    "h": 263.4
  },
  "luminance": 0.10651
}

Semantic roles & 50–950 ramp

primary
#2A56B9
secondary
#CAB075
accent
#B342E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A56B9

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

Preview Lab → · Contrast checker → · Palette generator →

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