#2A5595#2A5595

#2A5595 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.3% C 0.115 H 258.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#2A5595
RGBrgb(42, 85, 149)
HSLhsl(216, 56%, 37%)
HSVhsv(216, 72%, 58%)
CMYKcmyk(71.8%, 43%, 0%, 41.6%)
CIE-LABlab(36.29, 7.69, -39.54)
CIE-LCHlch(36.29, 40.28, 281.01°)
OKLaboklab(45.3% -0.0234 -0.1129)
OKLCHoklch(45.3% 0.115 258.3)
XYZxyz(9.6262, 9.1581, 29.6883)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5595 #956A2A
analogous
#2A8A95 #2A5595 #352A95
triadic
#2A5595 #952A55 #55952A
tetradic
#2A5595 #952A8A #956A2A #2A9535
square
#2A5595 #952A8A #956A2A #2A9535
split-complementary
#2A5595 #95352A #8A952A
monochromatic
#0F1F36 #1D3A65 #2A5595 #3770C5 #6692D4

Accessibility & contrast

On white

7.42
#2A5595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2A5595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5595
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5595#FFFFFF#000000##FFFFFF
##2A55951.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375B97
Deuteranopia (green-blind)
#255194
Tritanopia (blue-blind)
#00646D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a5595;
/* rgb */ color: rgb(42, 85, 149);
/* oklch */ color: oklch(45.3% 0.115 258.3);
Tailwind
colors: {
  custom: {
    50: '#7184b4',
    500: '#2a5595',
    950: '#000000',
  },
}
SCSS
$custom: #2a5595;
$custom-light: #7184b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5595",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 149
  },
  "hsl": {
    "h": 215.888,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45296,
    "c": 0.11533,
    "h": 258.3
  },
  "luminance": 0.09159
}

Semantic roles & 50–950 ramp

primary
#2A5595
secondary
#BA9661
accent
#A348DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5595

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

Preview Lab → · Contrast checker → · Palette generator →

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