#2A54BD#2A54BD

#2A54BD is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.0% C 0.172 H 264.3°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#2A54BD
RGBrgb(42, 84, 189)
HSLhsl(223, 64%, 45%)
HSVhsv(223, 78%, 74%)
CMYKcmyk(77.8%, 55.6%, 0%, 25.9%)
CIE-LABlab(38.73, 23.70, -59.37)
CIE-LCHlch(38.73, 63.93, 291.76°)
OKLaboklab(48.04% -0.017 -0.1713)
OKLCHoklch(48.04% 0.172 264.3)
XYZxyz(13.3072, 10.5055, 49.4607)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54BD #BD932A
analogous
#2A9DBD #2A54BD #492ABD
triadic
#2A54BD #BD2A54 #54BD2A
tetradic
#2A54BD #BD2A9D #BD932A #2ABD49
square
#2A54BD #BD2A9D #BD932A #2ABD49
split-complementary
#2A54BD #BD492A #9DBD2A
monochromatic
#142759 #1F3E8B #2A54BD #4D74D7 #7F9BE3

Accessibility & contrast

On white

6.77
#2A54BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2A54BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54BD
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54BD#FFFFFF#000000##FFFFFF
##2A54BD1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a54bd;
/* rgb */ color: rgb(42, 84, 189);
/* oklch */ color: oklch(48.0% 0.172 264.3);
Tailwind
colors: {
  custom: {
    50: '#7a83d2',
    500: '#2a54bd',
    950: '#000000',
  },
}
SCSS
$custom: #2a54bd;
$custom-light: #7a83d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54bd",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 222.857,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48038,
    "c": 0.17213,
    "h": 264.3
  },
  "luminance": 0.10507
}

Semantic roles & 50–950 ramp

primary
#2A54BD
secondary
#CBB378
accent
#B741E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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