#2A55A4#2A55A4

#2A55A4 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.136 H 261.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2A55A4
RGBrgb(42, 85, 164)
HSLhsl(219, 59%, 40%)
HSVhsv(219, 74%, 64%)
CMYKcmyk(74.4%, 48.2%, 0%, 35.7%)
CIE-LABlab(37.24, 13.45, -47.02)
CIE-LCHlch(37.24, 48.91, 285.96°)
OKLaboklab(46.34% -0.0206 -0.1349)
OKLCHoklch(46.34% 0.136 261.3)
XYZxyz(10.9018, 9.6684, 36.4064)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A55A4 #A4792A
analogous
#2A92A4 #2A55A4 #3C2AA4
triadic
#2A55A4 #A42A55 #55A42A
tetradic
#2A55A4 #A42A92 #A4792A #2AA43C
square
#2A55A4 #A42A92 #A4792A #2AA43C
split-complementary
#2A55A4 #A43C2A #92A42A
monochromatic
#112243 #1E3C73 #2A55A4 #3E70CD #6E94DA

Accessibility & contrast

On white

7.16
#2A55A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A55A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A55A4
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A55A4#FFFFFF#000000##FFFFFF
##2A55A41.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA7
Deuteranopia (green-blind)
#0752A2
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a55a4;
/* rgb */ color: rgb(42, 85, 164);
/* oklch */ color: oklch(46.3% 0.136 261.3);
Tailwind
colors: {
  custom: {
    50: '#7484bf',
    500: '#2a55a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a55a4;
$custom-light: #7484bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a55a4",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 164
  },
  "hsl": {
    "h": 218.852,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46338,
    "c": 0.13649,
    "h": 261.3
  },
  "luminance": 0.0967
}

Semantic roles & 50–950 ramp

primary
#2A55A4
secondary
#C1A269
accent
#AB45E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A55A4

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

Preview Lab → · Contrast checker → · Palette generator →

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