#2A54B7#2A54B7

#2A54B7 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.164 H 263.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2A54B7
RGBrgb(42, 84, 183)
HSLhsl(222, 63%, 44%)
HSVhsv(222, 77%, 72%)
CMYKcmyk(77%, 54.1%, 0%, 28.2%)
CIE-LABlab(38.29, 21.41, -56.58)
CIE-LCHlch(38.29, 60.50, 290.73°)
OKLaboklab(47.56% -0.0175 -0.1631)
OKLCHoklch(47.56% 0.164 263.9)
XYZxyz(12.6694, 10.2503, 46.1014)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B7 #B78D2A
analogous
#2A9BB7 #2A54B7 #472AB7
triadic
#2A54B7 #B72A54 #54B72A
tetradic
#2A54B7 #B72A9B #B78D2A #2AB747
square
#2A54B7 #B72A9B #B78D2A #2AB747
split-complementary
#2A54B7 #B7472A #9BB72A
monochromatic
#132653 #1F3D85 #2A54B7 #4973D5 #7B99E1

Accessibility & contrast

On white

6.88
#2A54B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2A54B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54B7
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B7#FFFFFF#000000##FFFFFF
##2A54B71.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BA
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a54b7;
/* rgb */ color: rgb(42, 84, 183);
/* oklch */ color: oklch(47.6% 0.164 263.9);
Tailwind
colors: {
  custom: {
    50: '#7983cd',
    500: '#2a54b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b7;
$custom-light: #7983cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b7",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 183
  },
  "hsl": {
    "h": 222.128,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4756,
    "c": 0.16401,
    "h": 263.9
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#2A54B7
secondary
#C9B074
accent
#B542E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #2A54B7

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

Preview Lab → · Contrast checker → · Palette generator →

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