#2A54B5#2A54B5

#2A54B5 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.161 H 263.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2A54B5
RGBrgb(42, 84, 181)
HSLhsl(222, 62%, 44%)
HSVhsv(222, 77%, 71%)
CMYKcmyk(76.8%, 53.6%, 0%, 29%)
CIE-LABlab(38.14, 20.65, -55.64)
CIE-LCHlch(38.14, 59.35, 290.36°)
OKLaboklab(47.4% -0.0176 -0.1603)
OKLCHoklch(47.4% 0.161 263.7)
XYZxyz(12.4627, 10.1677, 45.0128)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B5 #B58B2A
analogous
#2A99B5 #2A54B5 #462AB5
triadic
#2A54B5 #B52A54 #54B52A
tetradic
#2A54B5 #B52A99 #B58B2A #2AB546
square
#2A54B5 #B52A99 #B58B2A #2AB546
split-complementary
#2A54B5 #B5462A #99B52A
monochromatic
#132652 #1E3D83 #2A54B5 #4872D4 #7998E0

Accessibility & contrast

On white

6.92
#2A54B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2A54B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54B5
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B5#FFFFFF#000000##FFFFFF
##2A54B51.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0760B8
Deuteranopia (green-blind)
#0054B3
Tritanopia (blue-blind)
#006C7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a54b5;
/* rgb */ color: rgb(42, 84, 181);
/* oklch */ color: oklch(47.4% 0.161 263.7);
Tailwind
colors: {
  custom: {
    50: '#7883cc',
    500: '#2a54b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b5;
$custom-light: #7883cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b5",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 181
  },
  "hsl": {
    "h": 221.871,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47403,
    "c": 0.16128,
    "h": 263.7
  },
  "luminance": 0.10169
}

Semantic roles & 50–950 ramp

primary
#2A54B5
secondary
#C8AE73
accent
#B442E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54B5

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

Preview Lab → · Contrast checker → · Palette generator →

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