#2A54B4#2A54B4

#2A54B4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.3% C 0.160 H 263.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2A54B4
RGBrgb(42, 84, 180)
HSLhsl(222, 62%, 44%)
HSVhsv(222, 77%, 71%)
CMYKcmyk(76.7%, 53.3%, 0%, 29.4%)
CIE-LABlab(38.07, 20.26, -55.17)
CIE-LCHlch(38.07, 58.77, 290.17°)
OKLaboklab(47.32% -0.0177 -0.1589)
OKLCHoklch(47.32% 0.16 263.6)
XYZxyz(12.3605, 10.1268, 44.4744)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B4 #B48A2A
analogous
#2A99B4 #2A54B4 #452AB4
triadic
#2A54B4 #B42A54 #54B42A
tetradic
#2A54B4 #B42A99 #B48A2A #2AB445
square
#2A54B4 #B42A99 #B48A2A #2AB445
split-complementary
#2A54B4 #B4452A #99B42A
monochromatic
#132651 #1E3D82 #2A54B4 #4772D4 #7998E0

Accessibility & contrast

On white

6.94
#2A54B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A54B4
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B4#FFFFFF#000000##FFFFFF
##2A54B41.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B60B7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a54b4;
/* rgb */ color: rgb(42, 84, 180);
/* oklch */ color: oklch(47.3% 0.160 263.6);
Tailwind
colors: {
  custom: {
    50: '#7883cb',
    500: '#2a54b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b4;
$custom-light: #7883cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b4",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 180
  },
  "hsl": {
    "h": 221.739,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47324,
    "c": 0.15992,
    "h": 263.6
  },
  "luminance": 0.10128
}

Semantic roles & 50–950 ramp

primary
#2A54B4
secondary
#C8AE72
accent
#B443E5
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54B4

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

Preview Lab → · Contrast checker → · Palette generator →

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