#2A579A#2A579A

#2A579A is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.1% C 0.120 H 258.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2A579A
RGBrgb(42, 87, 154)
HSLhsl(216, 57%, 38%)
HSVhsv(216, 73%, 60%)
CMYKcmyk(72.7%, 43.5%, 0%, 39.6%)
CIE-LABlab(37.19, 8.29, -41.11)
CIE-LCHlch(37.19, 41.94, 281.40°)
OKLaboklab(46.09% -0.0243 -0.1175)
OKLCHoklch(46.09% 0.12 258.3)
XYZxyz(10.1937, 9.6406, 31.8892)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A579A #9A6D2A
analogous
#2A8F9A #2A579A #352A9A
triadic
#2A579A #9A2A57 #579A2A
tetradic
#2A579A #9A2A8F #9A6D2A #2A9A35
square
#2A579A #9A2A8F #9A6D2A #2A9A35
split-complementary
#2A579A #9A352A #8F9A2A
monochromatic
#10213A #1D3C6A #2A579A #3872C9 #6894D6

Accessibility & contrast

On white

7.17
#2A579A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A579A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A579A
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A579A#FFFFFF#000000##FFFFFF
##2A579A1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9D
Deuteranopia (green-blind)
#235399
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a579a;
/* rgb */ color: rgb(42, 87, 154);
/* oklch */ color: oklch(46.1% 0.120 258.3);
Tailwind
colors: {
  custom: {
    50: '#7285b8',
    500: '#2a579a',
    950: '#000000',
  },
}
SCSS
$custom: #2a579a;
$custom-light: #7285b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a579a",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 154
  },
  "hsl": {
    "h": 215.893,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46093,
    "c": 0.12,
    "h": 258.3
  },
  "luminance": 0.09642
}

Semantic roles & 50–950 ramp

primary
#2A579A
secondary
#BC9963
accent
#A347E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A579A

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

Preview Lab → · Contrast checker → · Palette generator →

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