#2A5397#2A5397

#2A5397 is a dark, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.121 H 260.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2A5397
RGBrgb(42, 83, 151)
HSLhsl(217, 56%, 38%)
HSVhsv(217, 72%, 59%)
CMYKcmyk(72.2%, 45%, 0%, 40.8%)
CIE-LABlab(35.81, 9.77, -41.50)
CIE-LCHlch(35.81, 42.64, 283.25°)
OKLaboklab(44.97% -0.021 -0.1187)
OKLCHoklch(44.97% 0.121 260)
XYZxyz(9.6320, 8.9121, 30.4847)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5397 #976E2A
analogous
#2A8A97 #2A5397 #372A97
triadic
#2A5397 #972A53 #53972A
tetradic
#2A5397 #972A8A #976E2A #2A9737
square
#2A5397 #972A8A #976E2A #2A9737
split-complementary
#2A5397 #97372A #8A972A
monochromatic
#0F1E37 #1D3967 #2A5397 #376DC7 #6790D5

Accessibility & contrast

On white

7.55
#2A5397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A5397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5397
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5397#FFFFFF#000000##FFFFFF
##2A53971.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9A
Deuteranopia (green-blind)
#1D5096
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5397;
/* rgb */ color: rgb(42, 83, 151);
/* oklch */ color: oklch(45.0% 0.121 260.0);
Tailwind
colors: {
  custom: {
    50: '#7282b6',
    500: '#2a5397',
    950: '#000000',
  },
}
SCSS
$custom: #2a5397;
$custom-light: #7282b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5397",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 217.431,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4497,
    "c": 0.12059,
    "h": 260
  },
  "luminance": 0.08913
}

Semantic roles & 50–950 ramp

primary
#2A5397
secondary
#BB9962
accent
#A748E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5397

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

Preview Lab → · Contrast checker → · Palette generator →

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