#2A579B#2A579B

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

Color values

HEX#2A579B
RGBrgb(42, 87, 155)
HSLhsl(216, 57%, 39%)
HSVhsv(216, 73%, 61%)
CMYKcmyk(72.9%, 43.9%, 0%, 39.2%)
CIE-LABlab(37.25, 8.67, -41.61)
CIE-LCHlch(37.25, 42.51, 281.77°)
OKLaboklab(46.16% -0.0241 -0.119)
OKLCHoklch(46.16% 0.121 258.6)
XYZxyz(10.2773, 9.6741, 32.3296)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A579B #9B6E2A
analogous
#2A8F9B #2A579B #352A9B
triadic
#2A579B #9B2A57 #579B2A
tetradic
#2A579B #9B2A8F #9B6E2A #2A9B35
square
#2A579B #9B2A8F #9B6E2A #2A9B35
split-complementary
#2A579B #9B352A #8F9B2A
monochromatic
#10213B #1D3C6B #2A579B #3972C9 #6995D6

Accessibility & contrast

On white

7.16
#2A579B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A579B
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A579B#FFFFFF#000000##FFFFFF
##2A579B1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365D9E
Deuteranopia (green-blind)
#22539A
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a579b;
/* rgb */ color: rgb(42, 87, 155);
/* oklch */ color: oklch(46.2% 0.121 258.6);
Tailwind
colors: {
  custom: {
    50: '#7285b9',
    500: '#2a579b',
    950: '#000000',
  },
}
SCSS
$custom: #2a579b;
$custom-light: #7285b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a579b",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 155
  },
  "hsl": {
    "h": 216.106,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46161,
    "c": 0.1214,
    "h": 258.6
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A579B

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

Preview Lab → · Contrast checker → · Palette generator →

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