#2A5AA1#2A5AA1

#2A5AA1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.3% C 0.126 H 258.3°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA1
RGBrgb(42, 90, 161)
HSLhsl(216, 59%, 40%)
HSVhsv(216, 74%, 63%)
CMYKcmyk(73.9%, 44.1%, 0%, 36.9%)
CIE-LABlab(38.51, 9.01, -43.19)
CIE-LCHlch(38.51, 44.12, 281.79°)
OKLaboklab(47.25% -0.0256 -0.1236)
OKLCHoklch(47.25% 0.126 258.3)
XYZxyz(11.0417, 10.3766, 35.1323)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA1 #A1712A
analogous
#2A96A1 #2A5AA1 #352AA1
triadic
#2A5AA1 #A12A5A #5AA12A
tetradic
#2A5AA1 #A12A96 #A1712A #2AA135
square
#2A5AA1 #A12A96 #A1712A #2AA135
split-complementary
#2A5AA1 #A1352A #96A12A
monochromatic
#112440 #1D3F70 #2A5AA1 #3C76CC #6D98D9

Accessibility & contrast

On white

6.83
#2A5AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2A5AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AA1
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA1#FFFFFF#000000##FFFFFF
##2A5AA11.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A4
Deuteranopia (green-blind)
#2156A0
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5aa1;
/* rgb */ color: rgb(42, 90, 161);
/* oklch */ color: oklch(47.3% 0.126 258.3);
Tailwind
colors: {
  custom: {
    50: '#7488bd',
    500: '#2a5aa1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa1;
$custom-light: #7488bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa1",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 161
  },
  "hsl": {
    "h": 215.798,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47254,
    "c": 0.12621,
    "h": 258.3
  },
  "luminance": 0.10378
}

Semantic roles & 50–950 ramp

primary
#2A5AA1
secondary
#C09C67
accent
#A346E2
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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