#2A54BC#2A54BC

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

Color values

HEX#2A54BC
RGBrgb(42, 84, 188)
HSLhsl(223, 63%, 45%)
HSVhsv(223, 78%, 74%)
CMYKcmyk(77.7%, 55.3%, 0%, 26.3%)
CIE-LABlab(38.66, 23.32, -58.91)
CIE-LCHlch(38.66, 63.36, 291.60°)
OKLaboklab(47.96% -0.0171 -0.1699)
OKLCHoklch(47.96% 0.171 264.3)
XYZxyz(13.1990, 10.4622, 48.8910)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54BC #BC922A
analogous
#2A9DBC #2A54BC #492ABC
triadic
#2A54BC #BC2A54 #54BC2A
tetradic
#2A54BC #BC2A9D #BC922A #2ABC49
square
#2A54BC #BC2A9D #BC922A #2ABC49
split-complementary
#2A54BC #BC492A #9DBC2A
monochromatic
#142758 #1F3E8A #2A54BC #4C74D7 #7E9BE2

Accessibility & contrast

On white

6.79
#2A54BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2A54BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54BC
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54BC#FFFFFF#000000##FFFFFF
##2A54BC1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a54bc;
/* rgb */ color: rgb(42, 84, 188);
/* oklch */ color: oklch(48.0% 0.171 264.3);
Tailwind
colors: {
  custom: {
    50: '#7a83d1',
    500: '#2a54bc',
    950: '#000000',
  },
}
SCSS
$custom: #2a54bc;
$custom-light: #7a83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54bc",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 222.74,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47958,
    "c": 0.17078,
    "h": 264.3
  },
  "luminance": 0.10464
}

Semantic roles & 50–950 ramp

primary
#2A54BC
secondary
#CBB377
accent
#B741E7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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