#2A56B2#2A56B2

#2A56B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.155 H 262.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2A56B2
RGBrgb(42, 86, 178)
HSLhsl(221, 62%, 43%)
HSVhsv(221, 76%, 70%)
CMYKcmyk(76.4%, 51.7%, 0%, 30.2%)
CIE-LABlab(38.48, 18.18, -53.32)
CIE-LCHlch(38.48, 56.34, 288.82°)
OKLaboklab(47.59% -0.0195 -0.1535)
OKLCHoklch(47.59% 0.155 262.8)
XYZxyz(12.3156, 10.3608, 43.4616)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56B2 #B2862A
analogous
#2A9AB2 #2A56B2 #422AB2
triadic
#2A56B2 #B22A56 #56B22A
tetradic
#2A56B2 #B22A9A #B2862A #2AB242
square
#2A56B2 #B22A9A #B2862A #2AB242
split-complementary
#2A56B2 #B2422A #9AB22A
monochromatic
#13264F #1E3E80 #2A56B2 #4674D3 #7799DF

Accessibility & contrast

On white

6.84
#2A56B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2A56B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56B2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56B2#FFFFFF#000000##FFFFFF
##2A56B21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a56b2;
/* rgb */ color: rgb(42, 86, 178);
/* oklch */ color: oklch(47.6% 0.155 262.8);
Tailwind
colors: {
  custom: {
    50: '#7785ca',
    500: '#2a56b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a56b2;
$custom-light: #7785ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56b2",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 220.588,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47593,
    "c": 0.1547,
    "h": 262.8
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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