#2A56AE#2A56AE

#2A56AE is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.3% C 0.149 H 262.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#2A56AE
RGBrgb(42, 86, 174)
HSLhsl(220, 61%, 42%)
HSVhsv(220, 76%, 68%)
CMYKcmyk(75.9%, 50.6%, 0%, 31.8%)
CIE-LABlab(38.20, 16.64, -51.41)
CIE-LCHlch(38.20, 54.04, 287.93°)
OKLaboklab(47.29% -0.02 -0.1478)
OKLCHoklch(47.29% 0.149 262.3)
XYZxyz(11.9199, 10.2025, 41.3773)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56AE #AE822A
analogous
#2A98AE #2A56AE #402AAE
triadic
#2A56AE #AE2A56 #56AE2A
tetradic
#2A56AE #AE2A98 #AE822A #2AAE40
square
#2A56AE #AE2A98 #AE822A #2AAE40
split-complementary
#2A56AE #AE402A #98AE2A
monochromatic
#12254B #1E3E7D #2A56AE #4373D2 #7598DE

Accessibility & contrast

On white

6.91
#2A56AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2A56AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56AE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56AE#FFFFFF#000000##FFFFFF
##2A56AE1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2060B1
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a56ae;
/* rgb */ color: rgb(42, 86, 174);
/* oklch */ color: oklch(47.3% 0.149 262.3);
Tailwind
colors: {
  custom: {
    50: '#7785c7',
    500: '#2a56ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a56ae;
$custom-light: #7785c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56ae",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 174
  },
  "hsl": {
    "h": 220,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47292,
    "c": 0.14918,
    "h": 262.3
  },
  "luminance": 0.10204
}

Semantic roles & 50–950 ramp

primary
#2A56AE
secondary
#C5A86F
accent
#AF44E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A56AE

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

Preview Lab → · Contrast checker → · Palette generator →

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