#2A56A2#2A56A2

#2A56A2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.4% C 0.132 H 260.5°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2A56A2
RGBrgb(42, 86, 162)
HSLhsl(218, 59%, 40%)
HSVhsv(218, 74%, 64%)
CMYKcmyk(74.1%, 46.9%, 0%, 36.5%)
CIE-LABlab(37.40, 12.02, -45.57)
CIE-LCHlch(37.40, 47.13, 284.78°)
OKLaboklab(46.42% -0.0218 -0.1306)
OKLCHoklch(46.42% 0.132 260.5)
XYZxyz(10.8019, 9.7553, 35.4891)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56A2 #A2762A
analogous
#2A92A2 #2A56A2 #3A2AA2
triadic
#2A56A2 #A22A56 #56A22A
tetradic
#2A56A2 #A22A92 #A2762A #2AA23A
square
#2A56A2 #A22A92 #A2762A #2AA23A
split-complementary
#2A56A2 #A23A2A #92A22A
monochromatic
#112241 #1D3C71 #2A56A2 #3D71CD #6D95D9

Accessibility & contrast

On white

7.12
#2A56A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2A56A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A56A2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56A2#FFFFFF#000000##FFFFFF
##2A56A21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#1253A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a56a2;
/* rgb */ color: rgb(42, 86, 162);
/* oklch */ color: oklch(46.4% 0.132 260.5);
Tailwind
colors: {
  custom: {
    50: '#7485be',
    500: '#2a56a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a56a2;
$custom-light: #7485be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56a2",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 218,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46418,
    "c": 0.13245,
    "h": 260.5
  },
  "luminance": 0.09756
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A56A2

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

Preview Lab → · Contrast checker → · Palette generator →

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