#2A579E#2A579E

#2A579E is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.4% C 0.126 H 259.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2A579E
RGBrgb(42, 87, 158)
HSLhsl(217, 58%, 39%)
HSVhsv(217, 73%, 62%)
CMYKcmyk(73.4%, 44.9%, 0%, 38%)
CIE-LABlab(37.44, 9.83, -43.12)
CIE-LCHlch(37.44, 44.22, 282.84°)
OKLaboklab(46.37% -0.0235 -0.1234)
OKLCHoklch(46.37% 0.126 259.2)
XYZxyz(10.5324, 9.7761, 33.6730)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A579E #9E712A
analogous
#2A919E #2A579E #372A9E
triadic
#2A579E #9E2A57 #579E2A
tetradic
#2A579E #9E2A91 #9E712A #2A9E37
square
#2A579E #9E2A91 #9E712A #2A9E37
split-complementary
#2A579E #9E372A #919E2A
monochromatic
#10223D #1D3C6E #2A579E #3A72CB #6B95D8

Accessibility & contrast

On white

7.11
#2A579E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2A579E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A579E
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A579E#FFFFFF#000000##FFFFFF
##2A579E1.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA1
Deuteranopia (green-blind)
#1D539D
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a579e;
/* rgb */ color: rgb(42, 87, 158);
/* oklch */ color: oklch(46.4% 0.126 259.2);
Tailwind
colors: {
  custom: {
    50: '#7385bb',
    500: '#2a579e',
    950: '#000000',
  },
}
SCSS
$custom: #2a579e;
$custom-light: #7385bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a579e",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 158
  },
  "hsl": {
    "h": 216.724,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46365,
    "c": 0.12562,
    "h": 259.2
  },
  "luminance": 0.09777
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A579E

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

Preview Lab → · Contrast checker → · Palette generator →

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