#2A579F#2A579F

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

Color values

HEX#2A579F
RGBrgb(42, 87, 159)
HSLhsl(217, 58%, 39%)
HSVhsv(217, 74%, 62%)
CMYKcmyk(73.6%, 45.3%, 0%, 37.6%)
CIE-LABlab(37.50, 10.21, -43.61)
CIE-LCHlch(37.50, 44.79, 283.17°)
OKLaboklab(46.43% -0.0233 -0.1249)
OKLCHoklch(46.43% 0.127 259.4)
XYZxyz(10.6188, 9.8107, 34.1282)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A579F #9F722A
analogous
#2A929F #2A579F #382A9F
triadic
#2A579F #9F2A57 #579F2A
tetradic
#2A579F #9F2A92 #9F722A #2A9F38
square
#2A579F #9F2A92 #9F722A #2A9F38
split-complementary
#2A579F #9F382A #929F2A
monochromatic
#10223E #1D3D6F #2A579F #3B72CB #6B95D8

Accessibility & contrast

On white

7.09
#2A579F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A579F
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A579F#FFFFFF#000000##FFFFFF
##2A579F1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335EA2
Deuteranopia (green-blind)
#1C539E
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a579f;
/* rgb */ color: rgb(42, 87, 159);
/* oklch */ color: oklch(46.4% 0.127 259.4);
Tailwind
colors: {
  custom: {
    50: '#7385bc',
    500: '#2a579f',
    950: '#000000',
  },
}
SCSS
$custom: #2a579f;
$custom-light: #7385bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a579f",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 159
  },
  "hsl": {
    "h": 216.923,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.12702,
    "h": 259.4
  },
  "luminance": 0.09812
}

Semantic roles & 50–950 ramp

primary
#2A579F
secondary
#BF9D66
accent
#A646E1
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A579F

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

Preview Lab → · Contrast checker → · Palette generator →

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