#2A56AA#2A56AA

#2A56AA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.144 H 261.8°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2A56AA
RGBrgb(42, 86, 170)
HSLhsl(219, 60%, 42%)
HSVhsv(219, 75%, 67%)
CMYKcmyk(75.3%, 49.4%, 0%, 33.3%)
CIE-LABlab(37.93, 15.10, -49.48)
CIE-LCHlch(37.93, 51.73, 286.97°)
OKLaboklab(47% -0.0205 -0.1421)
OKLCHoklch(47% 0.144 261.8)
XYZxyz(11.5357, 10.0488, 39.3541)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A56AA #AA7E2A
analogous
#2A96AA #2A56AA #3E2AAA
triadic
#2A56AA #AA2A56 #56AA2A
tetradic
#2A56AA #AA2A96 #AA7E2A #2AAA3E
square
#2A56AA #AA2A96 #AA7E2A #2AAA3E
split-complementary
#2A56AA #AA3E2A #96AA2A
monochromatic
#122448 #1E3D79 #2A56AA #4172D0 #7297DC

Accessibility & contrast

On white

6.98
#2A56AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2A56AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A56AA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A56AA#FFFFFF#000000##FFFFFF
##2A56AA1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a56aa;
/* rgb */ color: rgb(42, 86, 170);
/* oklch */ color: oklch(47.0% 0.144 261.8);
Tailwind
colors: {
  custom: {
    50: '#7685c4',
    500: '#2a56aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a56aa;
$custom-light: #7685c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a56aa",
  "rgb": {
    "r": 42,
    "g": 86,
    "b": 170
  },
  "hsl": {
    "h": 219.375,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46995,
    "c": 0.14363,
    "h": 261.8
  },
  "luminance": 0.1005
}

Semantic roles & 50–950 ramp

primary
#2A56AA
secondary
#C3A66C
accent
#AD44E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A56AA

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

Preview Lab → · Contrast checker → · Palette generator →

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