#2A5499#2A5499

#2A5499 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.3% C 0.122 H 259.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2A5499
RGBrgb(42, 84, 153)
HSLhsl(217, 57%, 38%)
HSVhsv(217, 73%, 60%)
CMYKcmyk(72.5%, 45.1%, 0%, 40%)
CIE-LABlab(36.24, 9.88, -42.03)
CIE-LCHlch(36.24, 43.18, 283.23°)
OKLaboklab(45.34% -0.0216 -0.1203)
OKLCHoklch(45.34% 0.122 259.8)
XYZxyz(9.8729, 9.1317, 31.3731)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5499 #996F2A
analogous
#2A8B99 #2A5499 #372A99
triadic
#2A5499 #992A54 #54992A
tetradic
#2A5499 #992A8B #996F2A #2A9937
square
#2A5499 #992A8B #996F2A #2A9937
split-complementary
#2A5499 #99372A #8B992A
monochromatic
#101F39 #1D3A69 #2A5499 #386FC8 #6891D6

Accessibility & contrast

On white

7.43
#2A5499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5499
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5499#FFFFFF#000000##FFFFFF
##2A54991.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325B9C
Deuteranopia (green-blind)
#1D5098
Tritanopia (blue-blind)
#00646F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a5499;
/* rgb */ color: rgb(42, 84, 153);
/* oklch */ color: oklch(45.3% 0.122 259.8);
Tailwind
colors: {
  custom: {
    50: '#7283b7',
    500: '#2a5499',
    950: '#000000',
  },
}
SCSS
$custom: #2a5499;
$custom-light: #7283b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5499",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 153
  },
  "hsl": {
    "h": 217.297,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45337,
    "c": 0.1222,
    "h": 259.8
  },
  "luminance": 0.09133
}

Semantic roles & 50–950 ramp

primary
#2A5499
secondary
#BC9A63
accent
#A648E0
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5499

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

Preview Lab → · Contrast checker → · Palette generator →

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