#2A56BC#2A56BC

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

Color values

HEX#2A56BC
RGBrgb(42, 86, 188)
HSLhsl(222, 63%, 45%)
HSVhsv(222, 78%, 74%)
CMYKcmyk(77.7%, 54.3%, 0%, 26.3%)
CIE-LABlab(39.20, 22.01, -58.03)
CIE-LCHlch(39.20, 62.06, 290.77°)
OKLaboklab(48.37% -0.0185 -0.1673)
OKLCHoklch(48.37% 0.168 263.7)
XYZxyz(13.3565, 10.7771, 48.9435)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56BC #BC902A
analogous
#2A9FBC #2A56BC #472ABC
triadic
#2A56BC #BC2A56 #56BC2A
tetradic
#2A56BC #BC2A9F #BC902A #2ABC47
square
#2A56BC #BC2A9F #BC902A #2ABC47
split-complementary
#2A56BC #BC472A #9FBC2A
monochromatic
#142858 #1F3F8A #2A56BC #4C76D7 #7E9CE2

Accessibility & contrast

On white

6.65
#2A56BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A56BC
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56BC#FFFFFF#000000##FFFFFF
##2A56BC1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a56bc;
/* rgb */ color: rgb(42, 86, 188);
/* oklch */ color: oklch(48.4% 0.168 263.7);
Tailwind
colors: {
  custom: {
    50: '#7a85d1',
    500: '#2a56bc',
    950: '#000000',
  },
}
SCSS
$custom: #2a56bc;
$custom-light: #7a85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56bc",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 221.918,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48368,
    "c": 0.16832,
    "h": 263.7
  },
  "luminance": 0.10779
}

Semantic roles & 50–950 ramp

primary
#2A56BC
secondary
#CBB277
accent
#B541E7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A56BC

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

Preview Lab → · Contrast checker → · Palette generator →

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