#2A54AE#2A54AE

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

Color values

HEX#2A54AE
RGBrgb(42, 84, 174)
HSLhsl(221, 61%, 42%)
HSVhsv(221, 76%, 68%)
CMYKcmyk(75.9%, 51.7%, 0%, 31.8%)
CIE-LABlab(37.64, 17.96, -52.32)
CIE-LCHlch(37.64, 55.32, 288.95°)
OKLaboklab(46.86% -0.0184 -0.1505)
OKLCHoklch(46.86% 0.152 263)
XYZxyz(11.7624, 9.8876, 41.3248)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54AE #AE842A
analogous
#2A96AE #2A54AE #422AAE
triadic
#2A54AE #AE2A54 #54AE2A
tetradic
#2A54AE #AE2A96 #AE842A #2AAE42
square
#2A54AE #AE2A96 #AE842A #2AAE42
split-complementary
#2A54AE #AE422A #96AE2A
monochromatic
#12244B #1E3C7D #2A54AE #4371D2 #7596DE

Accessibility & contrast

On white

7.05
#2A54AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2A54AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A54AE
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54AE#FFFFFF#000000##FFFFFF
##2A54AE1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5FB1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a54ae;
/* rgb */ color: rgb(42, 84, 174);
/* oklch */ color: oklch(46.9% 0.152 263.0);
Tailwind
colors: {
  custom: {
    50: '#7783c7',
    500: '#2a54ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a54ae;
$custom-light: #7783c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54ae",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 174
  },
  "hsl": {
    "h": 220.909,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46862,
    "c": 0.15166,
    "h": 263
  },
  "luminance": 0.09889
}

Semantic roles & 50–950 ramp

primary
#2A54AE
secondary
#C5AA6F
accent
#B144E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54AE

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

Preview Lab → · Contrast checker → · Palette generator →

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