#2A54BA#2A54BA

#2A54BA is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.168 H 264.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2A54BA
RGBrgb(42, 84, 186)
HSLhsl(223, 63%, 45%)
HSVhsv(223, 77%, 73%)
CMYKcmyk(77.4%, 54.8%, 0%, 27.1%)
CIE-LABlab(38.51, 22.56, -57.98)
CIE-LCHlch(38.51, 62.22, 291.26°)
OKLaboklab(47.8% -0.0172 -0.1672)
OKLCHoklch(47.8% 0.168 264.1)
XYZxyz(12.9849, 10.3766, 47.7634)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54BA #BA902A
analogous
#2A9CBA #2A54BA #482ABA
triadic
#2A54BA #BA2A54 #54BA2A
tetradic
#2A54BA #BA2A9C #BA902A #2ABA48
square
#2A54BA #BA2A9C #BA902A #2ABA48
split-complementary
#2A54BA #BA482A #9CBA2A
monochromatic
#132756 #1F3D88 #2A54BA #4B74D6 #7D9AE2

Accessibility & contrast

On white

6.83
#2A54BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2A54BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54BA
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54BA#FFFFFF#000000##FFFFFF
##2A54BA1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a54ba;
/* rgb */ color: rgb(42, 84, 186);
/* oklch */ color: oklch(47.8% 0.168 264.1);
Tailwind
colors: {
  custom: {
    50: '#7983cf',
    500: '#2a54ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a54ba;
$custom-light: #7983cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54ba",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 222.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47798,
    "c": 0.16808,
    "h": 264.1
  },
  "luminance": 0.10378
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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