#2A54B2#2A54B2

#2A54B2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.157 H 263.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2A54B2
RGBrgb(42, 84, 178)
HSLhsl(221, 62%, 43%)
HSVhsv(221, 76%, 70%)
CMYKcmyk(76.4%, 52.8%, 0%, 30.2%)
CIE-LABlab(37.92, 19.50, -54.23)
CIE-LCHlch(37.92, 57.62, 289.78°)
OKLaboklab(47.17% -0.0179 -0.1561)
OKLCHoklch(47.17% 0.157 263.4)
XYZxyz(12.1582, 10.0459, 43.4091)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54B2 #B2882A
analogous
#2A98B2 #2A54B2 #442AB2
triadic
#2A54B2 #B22A54 #54B22A
tetradic
#2A54B2 #B22A98 #B2882A #2AB244
square
#2A54B2 #B22A98 #B2882A #2AB244
split-complementary
#2A54B2 #B2442A #98B22A
monochromatic
#13254F #1E3D80 #2A54B2 #4672D3 #7797DF

Accessibility & contrast

On white

6.98
#2A54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2A54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A54B2
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54B2#FFFFFF#000000##FFFFFF
##2A54B21.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a54b2;
/* rgb */ color: rgb(42, 84, 178);
/* oklch */ color: oklch(47.2% 0.157 263.4);
Tailwind
colors: {
  custom: {
    50: '#7883ca',
    500: '#2a54b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a54b2;
$custom-light: #7883ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54b2",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 221.471,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47169,
    "c": 0.15718,
    "h": 263.4
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#2A54B2
secondary
#C7AC71
accent
#B343E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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