#2A579D#2A579D

#2A579D is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.124 H 259.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2A579D
RGBrgb(42, 87, 157)
HSLhsl(217, 58%, 39%)
HSVhsv(217, 73%, 62%)
CMYKcmyk(73.2%, 44.6%, 0%, 38.4%)
CIE-LABlab(37.38, 9.44, -42.62)
CIE-LCHlch(37.38, 43.65, 282.49°)
OKLaboklab(46.3% -0.0236 -0.1219)
OKLCHoklch(46.3% 0.124 259)
XYZxyz(10.4466, 9.7418, 33.2215)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A579D #9D702A
analogous
#2A919D #2A579D #372A9D
triadic
#2A579D #9D2A57 #579D2A
tetradic
#2A579D #9D2A91 #9D702A #2A9D37
square
#2A579D #9D2A91 #9D702A #2A9D37
split-complementary
#2A579D #9D372A #919D2A
monochromatic
#10213C #1D3C6D #2A579D #3A72CA #6A95D7

Accessibility & contrast

On white

7.12
#2A579D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2A579D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A579D
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A579D#FFFFFF#000000##FFFFFF
##2A579D1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA0
Deuteranopia (green-blind)
#1F539C
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a579d;
/* rgb */ color: rgb(42, 87, 157);
/* oklch */ color: oklch(46.3% 0.124 259.0);
Tailwind
colors: {
  custom: {
    50: '#7385ba',
    500: '#2a579d',
    950: '#000000',
  },
}
SCSS
$custom: #2a579d;
$custom-light: #7385ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a579d",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 216.522,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46297,
    "c": 0.12421,
    "h": 259
  },
  "luminance": 0.09743
}

Semantic roles & 50–950 ramp

primary
#2A579D
secondary
#BE9B65
accent
#A547E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A579D

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

Preview Lab → · Contrast checker → · Palette generator →

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