#2A56A3#2A56A3

#2A56A3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.134 H 260.7°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2A56A3
RGBrgb(42, 86, 163)
HSLhsl(218, 59%, 40%)
HSVhsv(218, 74%, 64%)
CMYKcmyk(74.2%, 47.2%, 0%, 36.1%)
CIE-LABlab(37.46, 12.40, -46.06)
CIE-LCHlch(37.46, 47.70, 285.07°)
OKLaboklab(46.49% -0.0216 -0.1321)
OKLCHoklch(46.49% 0.134 260.7)
XYZxyz(10.8911, 9.7910, 35.9591)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56A3 #A3772A
analogous
#2A92A3 #2A56A3 #3B2AA3
triadic
#2A56A3 #A32A56 #56A32A
tetradic
#2A56A3 #A32A92 #A3772A #2AA33B
square
#2A56A3 #A32A92 #A3772A #2AA33B
split-complementary
#2A56A3 #A33B2A #92A32A
monochromatic
#112342 #1D3C72 #2A56A3 #3D71CD #6E95DA

Accessibility & contrast

On white

7.10
#2A56A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2A56A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A56A3
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56A3#FFFFFF#000000##FFFFFF
##2A56A31.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA6
Deuteranopia (green-blind)
#1053A1
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a56a3;
/* rgb */ color: rgb(42, 86, 163);
/* oklch */ color: oklch(46.5% 0.134 260.7);
Tailwind
colors: {
  custom: {
    50: '#7485bf',
    500: '#2a56a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a56a3;
$custom-light: #7485bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56a3",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 163
  },
  "hsl": {
    "h": 218.182,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46489,
    "c": 0.13385,
    "h": 260.7
  },
  "luminance": 0.09792
}

Semantic roles & 50–950 ramp

primary
#2A56A3
secondary
#C0A068
accent
#A946E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A56A3

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

Preview Lab → · Contrast checker → · Palette generator →

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