#2A5398#2A5398

#2A5398 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.122 H 260.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2A5398
RGBrgb(42, 83, 152)
HSLhsl(218, 57%, 38%)
HSVhsv(218, 72%, 60%)
CMYKcmyk(72.4%, 45.4%, 0%, 40.4%)
CIE-LABlab(35.88, 10.16, -42.01)
CIE-LCHlch(35.88, 43.22, 283.59°)
OKLaboklab(45.04% -0.0208 -0.1202)
OKLCHoklch(45.04% 0.122 260.2)
XYZxyz(9.7136, 8.9447, 30.9143)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5398 #986F2A
analogous
#2A8A98 #2A5398 #382A98
triadic
#2A5398 #982A53 #53982A
tetradic
#2A5398 #982A8A #986F2A #2A9838
square
#2A5398 #982A8A #986F2A #2A9838
split-complementary
#2A5398 #98382A #8A982A
monochromatic
#101F38 #1D3968 #2A5398 #376DC8 #6790D5

Accessibility & contrast

On white

7.53
#2A5398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2A5398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5398
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5398#FFFFFF#000000##FFFFFF
##2A53981.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9B
Deuteranopia (green-blind)
#1C5097
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5398;
/* rgb */ color: rgb(42, 83, 152);
/* oklch */ color: oklch(45.0% 0.122 260.2);
Tailwind
colors: {
  custom: {
    50: '#7282b7',
    500: '#2a5398',
    950: '#000000',
  },
}
SCSS
$custom: #2a5398;
$custom-light: #7282b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5398",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 152
  },
  "hsl": {
    "h": 217.636,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4504,
    "c": 0.122,
    "h": 260.2
  },
  "luminance": 0.08946
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5398

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

Preview Lab → · Contrast checker → · Palette generator →

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