#2A54B9#2A54B9

#2A54B9 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.167 H 264.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2A54B9
RGBrgb(42, 84, 185)
HSLhsl(222, 63%, 45%)
HSVhsv(222, 77%, 73%)
CMYKcmyk(77.3%, 54.6%, 0%, 27.5%)
CIE-LABlab(38.44, 22.18, -57.52)
CIE-LCHlch(38.44, 61.64, 291.09°)
OKLaboklab(47.72% -0.0173 -0.1658)
OKLCHoklch(47.72% 0.167 264)
XYZxyz(12.8790, 10.3342, 47.2055)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B9 #B98F2A
analogous
#2A9CB9 #2A54B9 #482AB9
triadic
#2A54B9 #B92A54 #54B92A
tetradic
#2A54B9 #B92A9C #B98F2A #2AB948
square
#2A54B9 #B92A9C #B98F2A #2AB948
split-complementary
#2A54B9 #B9482A #9CB92A
monochromatic
#132755 #1F3D87 #2A54B9 #4A73D6 #7C9AE1

Accessibility & contrast

On white

6.85
#2A54B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2A54B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54B9
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B9#FFFFFF#000000##FFFFFF
##2A54B91.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a54b9;
/* rgb */ color: rgb(42, 84, 185);
/* oklch */ color: oklch(47.7% 0.167 264.0);
Tailwind
colors: {
  custom: {
    50: '#7983cf',
    500: '#2a54b9',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b9;
$custom-light: #7983cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b9",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 185
  },
  "hsl": {
    "h": 222.378,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47718,
    "c": 0.16673,
    "h": 264
  },
  "luminance": 0.10336
}

Semantic roles & 50–950 ramp

primary
#2A54B9
secondary
#CAB175
accent
#B642E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A54B9

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

Preview Lab → · Contrast checker → · Palette generator →

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