#2A54A6#2A54A6

#2A54A6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.3% C 0.141 H 262.1°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2A54A6
RGBrgb(42, 84, 166)
HSLhsl(220, 60%, 41%)
HSVhsv(220, 75%, 65%)
CMYKcmyk(74.7%, 49.4%, 0%, 34.9%)
CIE-LABlab(37.09, 14.88, -48.46)
CIE-LCHlch(37.09, 50.69, 287.07°)
OKLaboklab(46.26% -0.0194 -0.1392)
OKLCHoklch(46.26% 0.141 262.1)
XYZxyz(11.0056, 9.5849, 37.3390)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A54A6 #A67C2A
analogous
#2A92A6 #2A54A6 #3E2AA6
triadic
#2A54A6 #A62A54 #54A62A
tetradic
#2A54A6 #A62A92 #A67C2A #2AA63E
square
#2A54A6 #A62A92 #A67C2A #2AA63E
split-complementary
#2A54A6 #A63E2A #92A62A
monochromatic
#112344 #1E3B75 #2A54A6 #3F6FCE #7094DB

Accessibility & contrast

On white

7.20
#2A54A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2A54A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A54A6
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A54A6#FFFFFF#000000##FFFFFF
##2A54A61.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a54a6;
/* rgb */ color: rgb(42, 84, 166);
/* oklch */ color: oklch(46.3% 0.141 262.1);
Tailwind
colors: {
  custom: {
    50: '#7583c1',
    500: '#2a54a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a54a6;
$custom-light: #7583c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a54a6",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 166
  },
  "hsl": {
    "h": 219.677,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46263,
    "c": 0.14054,
    "h": 262.1
  },
  "luminance": 0.09586
}

Semantic roles & 50–950 ramp

primary
#2A54A6
secondary
#C2A46A
accent
#AD45E3
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A54A6

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

Preview Lab → · Contrast checker → · Palette generator →

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