#2A54AC#2A54AC

#2A54AC is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.7% C 0.149 H 262.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2A54AC
RGBrgb(42, 84, 172)
HSLhsl(221, 61%, 42%)
HSVhsv(221, 76%, 67%)
CMYKcmyk(75.6%, 51.2%, 0%, 32.5%)
CIE-LABlab(37.50, 17.19, -51.36)
CIE-LCHlch(37.50, 54.16, 288.50°)
OKLaboklab(46.71% -0.0186 -0.1477)
OKLCHoklch(46.71% 0.149 262.8)
XYZxyz(11.5689, 9.8102, 40.3056)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54AC #AC822A
analogous
#2A95AC #2A54AC #412AAC
triadic
#2A54AC #AC2A54 #54AC2A
tetradic
#2A54AC #AC2A95 #AC822A #2AAC41
square
#2A54AC #AC2A95 #AC822A #2AAC41
split-complementary
#2A54AC #AC412A #95AC2A
monochromatic
#12244A #1E3C7B #2A54AC #4270D1 #7396DD

Accessibility & contrast

On white

7.09
#2A54AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2A54AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A54AC
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54AC#FFFFFF#000000##FFFFFF
##2A54AC1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5FAF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a54ac;
/* rgb */ color: rgb(42, 84, 172);
/* oklch */ color: oklch(46.7% 0.149 262.8);
Tailwind
colors: {
  custom: {
    50: '#7683c5',
    500: '#2a54ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a54ac;
$custom-light: #7683c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54ac",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 172
  },
  "hsl": {
    "h": 220.615,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4671,
    "c": 0.14889,
    "h": 262.8
  },
  "luminance": 0.09811
}

Semantic roles & 50–950 ramp

primary
#2A54AC
secondary
#C4A86D
accent
#B044E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54AC

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

Preview Lab → · Contrast checker → · Palette generator →

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