#2A56BA#2A56BA

#2A56BA is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.166 H 263.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#2A56BA
RGBrgb(42, 86, 186)
HSLhsl(222, 63%, 45%)
HSVhsv(222, 77%, 73%)
CMYKcmyk(77.4%, 53.8%, 0%, 27.1%)
CIE-LABlab(39.06, 21.24, -57.10)
CIE-LCHlch(39.06, 60.92, 290.41°)
OKLaboklab(48.21% -0.0187 -0.1646)
OKLCHoklch(48.21% 0.166 263.5)
XYZxyz(13.1424, 10.6915, 47.8159)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56BA #BA8E2A
analogous
#2A9EBA #2A56BA #462ABA
triadic
#2A56BA #BA2A56 #56BA2A
tetradic
#2A56BA #BA2A9E #BA8E2A #2ABA46
square
#2A56BA #BA2A9E #BA8E2A #2ABA46
split-complementary
#2A56BA #BA462A #9EBA2A
monochromatic
#132856 #1F3F88 #2A56BA #4B75D6 #7D9CE2

Accessibility & contrast

On white

6.69
#2A56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2A56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56BA
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56BA#FFFFFF#000000##FFFFFF
##2A56BA1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0363BE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a56ba;
/* rgb */ color: rgb(42, 86, 186);
/* oklch */ color: oklch(48.2% 0.166 263.5);
Tailwind
colors: {
  custom: {
    50: '#7985cf',
    500: '#2a56ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a56ba;
$custom-light: #7985cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56ba",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 221.667,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48211,
    "c": 0.16562,
    "h": 263.5
  },
  "luminance": 0.10693
}

Semantic roles & 50–950 ramp

primary
#2A56BA
secondary
#CAB076
accent
#B442E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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