#2A5495#2A5495

#2A5495 is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.1% C 0.117 H 258.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#2A5495
RGBrgb(42, 84, 149)
HSLhsl(216, 56%, 37%)
HSVhsv(216, 72%, 58%)
CMYKcmyk(71.8%, 43.6%, 0%, 41.6%)
CIE-LABlab(35.99, 8.35, -40.02)
CIE-LCHlch(35.99, 40.88, 281.78°)
OKLaboklab(45.06% -0.0224 -0.1143)
OKLCHoklch(45.06% 0.117 258.9)
XYZxyz(9.5480, 9.0018, 29.6623)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5495 #956B2A
analogous
#2A8995 #2A5495 #362A95
triadic
#2A5495 #952A54 #54952A
tetradic
#2A5495 #952A89 #956B2A #2A9536
square
#2A5495 #952A89 #956B2A #2A9536
split-complementary
#2A5495 #95362A #89952A
monochromatic
#0F1E36 #1D3965 #2A5495 #376FC5 #6691D4

Accessibility & contrast

On white

7.50
#2A5495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A5495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5495
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5495#FFFFFF#000000##FFFFFF
##2A54951.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355A98
Deuteranopia (green-blind)
#225094
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a5495;
/* rgb */ color: rgb(42, 84, 149);
/* oklch */ color: oklch(45.1% 0.117 258.9);
Tailwind
colors: {
  custom: {
    50: '#7183b4',
    500: '#2a5495',
    950: '#000000',
  },
}
SCSS
$custom: #2a5495;
$custom-light: #7183b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5495",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 149
  },
  "hsl": {
    "h": 216.449,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45064,
    "c": 0.11653,
    "h": 258.9
  },
  "luminance": 0.09003
}

Semantic roles & 50–950 ramp

primary
#2A5495
secondary
#BA9761
accent
#A448DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5495

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

Preview Lab → · Contrast checker → · Palette generator →

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