#2A5799#2A5799

#2A5799 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 46.0% C 0.119 H 258.1°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#2A5799
RGBrgb(42, 87, 153)
HSLhsl(216, 57%, 38%)
HSVhsv(216, 73%, 60%)
CMYKcmyk(72.5%, 43.1%, 0%, 40%)
CIE-LABlab(37.13, 7.91, -40.61)
CIE-LCHlch(37.13, 41.37, 281.02°)
OKLaboklab(46.03% -0.0245 -0.116)
OKLCHoklch(46.03% 0.119 258.1)
XYZxyz(10.1107, 9.6075, 31.4524)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5799 #996C2A
analogous
#2A8E99 #2A5799 #352A99
triadic
#2A5799 #992A57 #57992A
tetradic
#2A5799 #992A8E #996C2A #2A9935
square
#2A5799 #992A8E #996C2A #2A9935
split-complementary
#2A5799 #99352A #8E992A
monochromatic
#102039 #1D3C69 #2A5799 #3872C8 #6894D6

Accessibility & contrast

On white

7.19
#2A5799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2A5799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5799
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5799#FFFFFF#000000##FFFFFF
##2A57991.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9C
Deuteranopia (green-blind)
#245398
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a5799;
/* rgb */ color: rgb(42, 87, 153);
/* oklch */ color: oklch(46.0% 0.119 258.1);
Tailwind
colors: {
  custom: {
    50: '#7285b7',
    500: '#2a5799',
    950: '#000000',
  },
}
SCSS
$custom: #2a5799;
$custom-light: #7285b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5799",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 215.676,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46026,
    "c": 0.11859,
    "h": 258.1
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#2A5799
secondary
#BC9863
accent
#A248E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5799

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

Preview Lab → · Contrast checker → · Palette generator →

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