#2A5AA0#2A5AA0

#2A5AA0 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.2% C 0.125 H 258.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA0
RGBrgb(42, 90, 160)
HSLhsl(216, 58%, 40%)
HSVhsv(216, 74%, 63%)
CMYKcmyk(73.8%, 43.7%, 0%, 37.3%)
CIE-LABlab(38.45, 8.63, -42.70)
CIE-LCHlch(38.45, 43.56, 281.43°)
OKLaboklab(47.19% -0.0259 -0.1221)
OKLCHoklch(47.19% 0.125 258)
XYZxyz(10.9539, 10.3414, 34.6697)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA0 #A0702A
analogous
#2A95A0 #2A5AA0 #352AA0
triadic
#2A5AA0 #A02A5A #5AA02A
tetradic
#2A5AA0 #A02A95 #A0702A #2AA035
square
#2A5AA0 #A02A95 #A0702A #2AA035
split-complementary
#2A5AA0 #A0352A #95A02A
monochromatic
#11233F #1D3F70 #2A5AA0 #3C76CC #6C98D8

Accessibility & contrast

On white

6.84
#2A5AA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2A5AA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AA0
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA0#FFFFFF#000000##FFFFFF
##2A5AA01.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3860A3
Deuteranopia (green-blind)
#22559F
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5aa0;
/* rgb */ color: rgb(42, 90, 160);
/* oklch */ color: oklch(47.2% 0.125 258.0);
Tailwind
colors: {
  custom: {
    50: '#7388bc',
    500: '#2a5aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa0;
$custom-light: #7388bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa0",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 160
  },
  "hsl": {
    "h": 215.593,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47187,
    "c": 0.12482,
    "h": 258
  },
  "luminance": 0.10343
}

Semantic roles & 50–950 ramp

primary
#2A5AA0
secondary
#BF9B67
accent
#A246E2
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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