#2A54B0#2A54B0

#2A54B0 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.0% C 0.154 H 263.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2A54B0
RGBrgb(42, 84, 176)
HSLhsl(221, 61%, 43%)
HSVhsv(221, 76%, 69%)
CMYKcmyk(76.1%, 52.3%, 0%, 31%)
CIE-LABlab(37.78, 18.73, -53.28)
CIE-LCHlch(37.78, 56.47, 289.37°)
OKLaboklab(47.02% -0.0182 -0.1533)
OKLCHoklch(47.02% 0.154 263.2)
XYZxyz(11.9588, 9.9661, 42.3593)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B0 #B0862A
analogous
#2A97B0 #2A54B0 #432AB0
triadic
#2A54B0 #B02A54 #54B02A
tetradic
#2A54B0 #B02A97 #B0862A #2AB043
square
#2A54B0 #B02A97 #B0862A #2AB043
split-complementary
#2A54B0 #B0432A #97B02A
monochromatic
#12254D #1E3C7F #2A54B0 #4571D3 #7697DE

Accessibility & contrast

On white

7.02
#2A54B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A54B0
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B0#FFFFFF#000000##FFFFFF
##2A54B01.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165FB3
Deuteranopia (green-blind)
#0053AE
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a54b0;
/* rgb */ color: rgb(42, 84, 176);
/* oklch */ color: oklch(47.0% 0.154 263.2);
Tailwind
colors: {
  custom: {
    50: '#7783c8',
    500: '#2a54b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b0;
$custom-light: #7783c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b0",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 176
  },
  "hsl": {
    "h": 221.194,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47015,
    "c": 0.15442,
    "h": 263.2
  },
  "luminance": 0.09967
}

Semantic roles & 50–950 ramp

primary
#2A54B0
secondary
#C6AB70
accent
#B243E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54B0

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

Preview Lab → · Contrast checker → · Palette generator →

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