#2A56BD#2A56BD

#2A56BD is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.4% C 0.170 H 263.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#2A56BD
RGBrgb(42, 86, 189)
HSLhsl(222, 64%, 45%)
HSVhsv(222, 78%, 74%)
CMYKcmyk(77.8%, 54.5%, 0%, 25.9%)
CIE-LABlab(39.28, 22.39, -58.49)
CIE-LCHlch(39.28, 62.63, 290.94°)
OKLaboklab(48.45% -0.0184 -0.1687)
OKLCHoklch(48.45% 0.17 263.8)
XYZxyz(13.4647, 10.8204, 49.5132)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56BD #BD912A
analogous
#2A9FBD #2A56BD #482ABD
triadic
#2A56BD #BD2A56 #56BD2A
tetradic
#2A56BD #BD2A9F #BD912A #2ABD48
square
#2A56BD #BD2A9F #BD912A #2ABD48
split-complementary
#2A56BD #BD482A #9FBD2A
monochromatic
#142859 #1F3F8B #2A56BD #4D76D7 #7F9DE3

Accessibility & contrast

On white

6.64
#2A56BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2A56BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56BD
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56BD#FFFFFF#000000##FFFFFF
##2A56BD1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#006F81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a56bd;
/* rgb */ color: rgb(42, 86, 189);
/* oklch */ color: oklch(48.4% 0.170 263.8);
Tailwind
colors: {
  custom: {
    50: '#7a85d2',
    500: '#2a56bd',
    950: '#000000',
  },
}
SCSS
$custom: #2a56bd;
$custom-light: #7a85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56bd",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 189
  },
  "hsl": {
    "h": 222.041,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48447,
    "c": 0.16967,
    "h": 263.8
  },
  "luminance": 0.10822
}

Semantic roles & 50–950 ramp

primary
#2A56BD
secondary
#CBB278
accent
#B541E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A56BD

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

Preview Lab → · Contrast checker → · Palette generator →

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