#2A579C#2A579C

#2A579C is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.2% C 0.123 H 258.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2A579C
RGBrgb(42, 87, 156)
HSLhsl(216, 58%, 39%)
HSVhsv(216, 73%, 61%)
CMYKcmyk(73.1%, 44.2%, 0%, 38.8%)
CIE-LABlab(37.31, 9.06, -42.12)
CIE-LCHlch(37.31, 43.08, 282.14°)
OKLaboklab(46.23% -0.0238 -0.1205)
OKLCHoklch(46.23% 0.123 258.8)
XYZxyz(10.3616, 9.7078, 32.7738)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A579C #9C6F2A
analogous
#2A909C #2A579C #362A9C
triadic
#2A579C #9C2A57 #579C2A
tetradic
#2A579C #9C2A90 #9C6F2A #2A9C36
square
#2A579C #9C2A90 #9C6F2A #2A9C36
split-complementary
#2A579C #9C362A #909C2A
monochromatic
#10213C #1D3C6C #2A579C #3972CA #6A95D7

Accessibility & contrast

On white

7.14
#2A579C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2A579C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A579C
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A579C#FFFFFF#000000##FFFFFF
##2A579C1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355D9F
Deuteranopia (green-blind)
#20539B
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a579c;
/* rgb */ color: rgb(42, 87, 156);
/* oklch */ color: oklch(46.2% 0.123 258.8);
Tailwind
colors: {
  custom: {
    50: '#7385ba',
    500: '#2a579c',
    950: '#000000',
  },
}
SCSS
$custom: #2a579c;
$custom-light: #7385ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a579c",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 156
  },
  "hsl": {
    "h": 216.316,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46229,
    "c": 0.12281,
    "h": 258.8
  },
  "luminance": 0.09709
}

Semantic roles & 50–950 ramp

primary
#2A579C
secondary
#BD9A65
accent
#A447E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A579C

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

Preview Lab → · Contrast checker → · Palette generator →

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