#2A56A8#2A56A8

#2A56A8 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.141 H 261.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2A56A8
RGBrgb(42, 86, 168)
HSLhsl(219, 60%, 41%)
HSVhsv(219, 75%, 66%)
CMYKcmyk(75%, 48.8%, 0%, 34.1%)
CIE-LABlab(37.80, 14.33, -48.51)
CIE-LCHlch(37.80, 50.58, 286.46°)
OKLaboklab(46.85% -0.0208 -0.1393)
OKLCHoklch(46.85% 0.141 261.5)
XYZxyz(11.3480, 9.9737, 38.3652)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56A8 #A87C2A
analogous
#2A95A8 #2A56A8 #3D2AA8
triadic
#2A56A8 #A82A56 #56A82A
tetradic
#2A56A8 #A82A95 #A87C2A #2AA83D
square
#2A56A8 #A82A95 #A87C2A #2AA83D
split-complementary
#2A56A8 #A83D2A #95A82A
monochromatic
#122446 #1E3D77 #2A56A8 #4072CF #7196DB

Accessibility & contrast

On white

7.01
#2A56A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2A56A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A56A8
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56A8#FFFFFF#000000##FFFFFF
##2A56A81.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAB
Deuteranopia (green-blind)
#0054A6
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a56a8;
/* rgb */ color: rgb(42, 86, 168);
/* oklch */ color: oklch(46.8% 0.141 261.5);
Tailwind
colors: {
  custom: {
    50: '#7585c2',
    500: '#2a56a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a56a8;
$custom-light: #7585c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56a8",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 168
  },
  "hsl": {
    "h": 219.048,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46849,
    "c": 0.14084,
    "h": 261.5
  },
  "luminance": 0.09975
}

Semantic roles & 50–950 ramp

primary
#2A56A8
secondary
#C3A46B
accent
#AC45E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2A56A8

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

Preview Lab → · Contrast checker → · Palette generator →

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