#2A56AB#2A56AB

#2A56AB is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.145 H 261.9°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2A56AB
RGBrgb(42, 86, 171)
HSLhsl(220, 61%, 42%)
HSVhsv(220, 75%, 67%)
CMYKcmyk(75.4%, 49.7%, 0%, 32.9%)
CIE-LABlab(38.00, 15.48, -49.97)
CIE-LCHlch(38.00, 52.31, 287.22°)
OKLaboklab(47.07% -0.0204 -0.1436)
OKLCHoklch(47.07% 0.145 261.9)
XYZxyz(11.6307, 10.0868, 39.8542)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56AB #AB7F2A
analogous
#2A97AB #2A56AB #3F2AAB
triadic
#2A56AB #AB2A56 #56AB2A
tetradic
#2A56AB #AB2A97 #AB7F2A #2AAB3F
square
#2A56AB #AB2A97 #AB7F2A #2AAB3F
split-complementary
#2A56AB #AB3F2A #97AB2A
monochromatic
#122549 #1E3D7A #2A56AB #4272D1 #7397DD

Accessibility & contrast

On white

6.96
#2A56AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2A56AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56AB
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56AB#FFFFFF#000000##FFFFFF
##2A56AB1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a56ab;
/* rgb */ color: rgb(42, 86, 171);
/* oklch */ color: oklch(47.1% 0.145 261.9);
Tailwind
colors: {
  custom: {
    50: '#7685c5',
    500: '#2a56ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a56ab;
$custom-light: #7685c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56ab",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 219.535,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47069,
    "c": 0.14502,
    "h": 261.9
  },
  "luminance": 0.10088
}

Semantic roles & 50–950 ramp

primary
#2A56AB
secondary
#C4A66D
accent
#AD44E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A56AB

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

Preview Lab → · Contrast checker → · Palette generator →

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