#2A5899#2A5899

#2A5899 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.3% C 0.117 H 257.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2A5899
RGBrgb(42, 88, 153)
HSLhsl(215, 57%, 38%)
HSVhsv(215, 73%, 60%)
CMYKcmyk(72.5%, 42.5%, 0%, 40%)
CIE-LABlab(37.43, 7.26, -40.13)
CIE-LCHlch(37.43, 40.78, 280.25°)
OKLaboklab(46.26% -0.0254 -0.1146)
OKLCHoklch(46.26% 0.117 257.5)
XYZxyz(10.1922, 9.7705, 31.4796)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5899 #996B2A
analogous
#2A8F99 #2A5899 #332A99
triadic
#2A5899 #992A58 #58992A
tetradic
#2A5899 #992A8F #996B2A #2A9933
square
#2A5899 #992A8F #996B2A #2A9933
split-complementary
#2A5899 #99332A #8F992A
monochromatic
#102139 #1D3C69 #2A5899 #3874C8 #6895D6

Accessibility & contrast

On white

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

On black

2.95
#2A5899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A5899#FFFFFF#000000##FFFFFF
##2A58991.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395E9C
Deuteranopia (green-blind)
#275398
Tritanopia (blue-blind)
#006771
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a5899;
/* rgb */ color: rgb(42, 88, 153);
/* oklch */ color: oklch(46.3% 0.117 257.5);
Tailwind
colors: {
  custom: {
    50: '#7286b7',
    500: '#2a5899',
    950: '#000000',
  },
}
SCSS
$custom: #2a5899;
$custom-light: #7286b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5899",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 153
  },
  "hsl": {
    "h": 215.135,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46258,
    "c": 0.11741,
    "h": 257.5
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

primary
#2A5899
secondary
#BC9763
accent
#A148E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2A5899

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

Preview Lab → · Contrast checker → · Palette generator →

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