#2A5AA9#2A5AA9

#2A5AA9 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.137 H 259.9°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA9
RGBrgb(42, 90, 169)
HSLhsl(217, 60%, 41%)
HSVhsv(217, 75%, 66%)
CMYKcmyk(75.1%, 46.7%, 0%, 33.7%)
CIE-LABlab(39.02, 12.08, -47.14)
CIE-LCHlch(39.02, 48.67, 284.38°)
OKLaboklab(47.81% -0.0242 -0.1352)
OKLCHoklch(47.81% 0.137 259.9)
XYZxyz(11.7698, 10.6678, 38.9672)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA9 #A9792A
analogous
#2A9AA9 #2A5AA9 #3A2AA9
triadic
#2A5AA9 #A92A5A #5AA92A
tetradic
#2A5AA9 #A92A9A #A9792A #2AA93A
square
#2A5AA9 #A92A9A #A9792A #2AA93A
split-complementary
#2A5AA9 #A93A2A #9AA92A
monochromatic
#122647 #1E4078 #2A5AA9 #4177D0 #729ADC

Accessibility & contrast

On white

6.70
#2A5AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2A5AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AA9
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA9#FFFFFF#000000##FFFFFF
##2A5AA91.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AC
Deuteranopia (green-blind)
#1256A7
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5aa9;
/* rgb */ color: rgb(42, 90, 169);
/* oklch */ color: oklch(47.8% 0.137 259.9);
Tailwind
colors: {
  custom: {
    50: '#7588c3',
    500: '#2a5aa9',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa9;
$custom-light: #7588c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa9",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 169
  },
  "hsl": {
    "h": 217.323,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47807,
    "c": 0.13733,
    "h": 259.9
  },
  "luminance": 0.10669
}

Semantic roles & 50–950 ramp

primary
#2A5AA9
secondary
#C3A26C
accent
#A744E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2A5AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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