#2A54A1#2A54A1

#2A54A1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 45.9% C 0.134 H 261.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#2A54A1
RGBrgb(42, 84, 161)
HSLhsl(219, 59%, 40%)
HSVhsv(219, 74%, 63%)
CMYKcmyk(73.9%, 47.8%, 0%, 36.9%)
CIE-LABlab(36.75, 12.96, -46.01)
CIE-LCHlch(36.75, 47.80, 285.73°)
OKLaboklab(45.9% -0.0202 -0.132)
OKLCHoklch(45.9% 0.134 261.3)
XYZxyz(10.5559, 9.4050, 34.9703)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54A1 #A1772A
analogous
#2A8FA1 #2A54A1 #3C2AA1
triadic
#2A54A1 #A12A54 #54A12A
tetradic
#2A54A1 #A12A8F #A1772A #2AA13C
square
#2A54A1 #A12A8F #A1772A #2AA13C
split-complementary
#2A54A1 #A13C2A #8FA12A
monochromatic
#112140 #1D3B70 #2A54A1 #3C6FCC #6D93D9

Accessibility & contrast

On white

7.29
#2A54A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2A54A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A54A1
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54A1#FFFFFF#000000##FFFFFF
##2A54A11.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5CA4
Deuteranopia (green-blind)
#0C519F
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a54a1;
/* rgb */ color: rgb(42, 84, 161);
/* oklch */ color: oklch(45.9% 0.134 261.3);
Tailwind
colors: {
  custom: {
    50: '#7483bd',
    500: '#2a54a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a54a1;
$custom-light: #7483bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54a1",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 161
  },
  "hsl": {
    "h": 218.824,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.459,
    "c": 0.13352,
    "h": 261.3
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A54A1

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

Preview Lab → · Contrast checker → · Palette generator →

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