#2A55AB#2A55AB

#2A55AB is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.146 H 262.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2A55AB
RGBrgb(42, 85, 171)
HSLhsl(220, 61%, 42%)
HSVhsv(220, 75%, 67%)
CMYKcmyk(75.4%, 50.3%, 0%, 32.9%)
CIE-LABlab(37.71, 16.14, -50.42)
CIE-LCHlch(37.71, 52.95, 287.75°)
OKLaboklab(46.85% -0.0196 -0.1449)
OKLCHoklch(46.85% 0.146 262.3)
XYZxyz(11.5514, 9.9282, 39.8277)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A55AB #AB802A
analogous
#2A96AB #2A55AB #402AAB
triadic
#2A55AB #AB2A55 #55AB2A
tetradic
#2A55AB #AB2A96 #AB802A #2AAB40
square
#2A55AB #AB2A96 #AB802A #2AAB40
split-complementary
#2A55AB #AB402A #96AB2A
monochromatic
#122449 #1E3D7A #2A55AB #4271D1 #7396DD

Accessibility & contrast

On white

7.03
#2A55AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2A55AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A55AB
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A55AB#FFFFFF#000000##FFFFFF
##2A55AB1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225FAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a55ab;
/* rgb */ color: rgb(42, 85, 171);
/* oklch */ color: oklch(46.9% 0.146 262.3);
Tailwind
colors: {
  custom: {
    50: '#7684c5',
    500: '#2a55ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a55ab;
$custom-light: #7684c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a55ab",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 171
  },
  "hsl": {
    "h": 220,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46851,
    "c": 0.14626,
    "h": 262.3
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#2A55AB
secondary
#C4A76D
accent
#AE44E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A55AB

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

Preview Lab → · Contrast checker → · Palette generator →

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