#2A56A4#2A56A4

#2A56A4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.6% C 0.135 H 260.9°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2A56A4
RGBrgb(42, 86, 164)
HSLhsl(218, 59%, 40%)
HSVhsv(218, 74%, 64%)
CMYKcmyk(74.4%, 47.6%, 0%, 35.7%)
CIE-LABlab(37.53, 12.79, -46.56)
CIE-LCHlch(37.53, 48.28, 285.36°)
OKLaboklab(46.56% -0.0215 -0.1335)
OKLCHoklch(46.56% 0.135 260.9)
XYZxyz(10.9811, 9.8269, 36.4328)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56A4 #A4782A
analogous
#2A93A4 #2A56A4 #3B2AA4
triadic
#2A56A4 #A42A56 #56A42A
tetradic
#2A56A4 #A42A93 #A4782A #2AA43B
square
#2A56A4 #A42A93 #A4782A #2AA43B
split-complementary
#2A56A4 #A43B2A #93A42A
monochromatic
#112343 #1E3C73 #2A56A4 #3E72CD #6E95DA

Accessibility & contrast

On white

7.08
#2A56A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2A56A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A56A4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56A4#FFFFFF#000000##FFFFFF
##2A56A41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA7
Deuteranopia (green-blind)
#0D53A2
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a56a4;
/* rgb */ color: rgb(42, 86, 164);
/* oklch */ color: oklch(46.6% 0.135 260.9);
Tailwind
colors: {
  custom: {
    50: '#7485bf',
    500: '#2a56a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a56a4;
$custom-light: #7485bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56a4",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 164
  },
  "hsl": {
    "h": 218.361,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4656,
    "c": 0.13526,
    "h": 260.9
  },
  "luminance": 0.09828
}

Semantic roles & 50–950 ramp

primary
#2A56A4
secondary
#C1A169
accent
#AA45E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A56A4

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

Preview Lab → · Contrast checker → · Palette generator →

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