#2A55A1#2A55A1

#2A55A1 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.1% C 0.132 H 260.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2A55A1
RGBrgb(42, 85, 161)
HSLhsl(218, 59%, 40%)
HSVhsv(218, 74%, 63%)
CMYKcmyk(73.9%, 47.2%, 0%, 36.9%)
CIE-LABlab(37.04, 12.30, -45.55)
CIE-LCHlch(37.04, 47.18, 285.11°)
OKLaboklab(46.12% -0.0211 -0.1306)
OKLCHoklch(46.12% 0.132 260.8)
XYZxyz(10.6341, 9.5613, 34.9964)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A55A1 #A1762A
analogous
#2A91A1 #2A55A1 #3A2AA1
triadic
#2A55A1 #A12A55 #55A12A
tetradic
#2A55A1 #A12A91 #A1762A #2AA13A
square
#2A55A1 #A12A91 #A1762A #2AA13A
split-complementary
#2A55A1 #A13A2A #91A12A
monochromatic
#112240 #1D3B70 #2A55A1 #3C70CC #6D94D9

Accessibility & contrast

On white

7.21
#2A55A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2A55A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A55A1
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A55A1#FFFFFF#000000##FFFFFF
##2A55A11.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5DA4
Deuteranopia (green-blind)
#11529F
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a55a1;
/* rgb */ color: rgb(42, 85, 161);
/* oklch */ color: oklch(46.1% 0.132 260.8);
Tailwind
colors: {
  custom: {
    50: '#7484bd',
    500: '#2a55a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a55a1;
$custom-light: #7484bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a55a1",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 161
  },
  "hsl": {
    "h": 218.319,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46123,
    "c": 0.13228,
    "h": 260.8
  },
  "luminance": 0.09562
}

Semantic roles & 50–950 ramp

primary
#2A55A1
secondary
#C0A067
accent
#AA46E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A55A1

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

Preview Lab → · Contrast checker → · Palette generator →

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