#2A5AA6#2A5AA6

#2A5AA6 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.6% C 0.133 H 259.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA6
RGBrgb(42, 90, 166)
HSLhsl(217, 60%, 41%)
HSVhsv(217, 75%, 65%)
CMYKcmyk(74.7%, 45.8%, 0%, 34.9%)
CIE-LABlab(38.82, 10.93, -45.67)
CIE-LCHlch(38.82, 46.96, 283.46°)
OKLaboklab(47.6% -0.0247 -0.1309)
OKLCHoklch(47.6% 0.133 259.3)
XYZxyz(11.4914, 10.5565, 37.5010)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA6 #A6762A
analogous
#2A98A6 #2A5AA6 #382AA6
triadic
#2A5AA6 #A62A5A #5AA62A
tetradic
#2A5AA6 #A62A98 #A6762A #2AA638
square
#2A5AA6 #A62A98 #A6762A #2AA638
split-complementary
#2A5AA6 #A6382A #98A62A
monochromatic
#112544 #1E4075 #2A5AA6 #3F76CE #7099DB

Accessibility & contrast

On white

6.75
#2A5AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2A5AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AA6
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA6#FFFFFF#000000##FFFFFF
##2A5AA61.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362A9
Deuteranopia (green-blind)
#1956A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5aa6;
/* rgb */ color: rgb(42, 90, 166);
/* oklch */ color: oklch(47.6% 0.133 259.3);
Tailwind
colors: {
  custom: {
    50: '#7588c1',
    500: '#2a5aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa6;
$custom-light: #7588c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa6",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 216.774,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47597,
    "c": 0.13317,
    "h": 259.3
  },
  "luminance": 0.10558
}

Semantic roles & 50–950 ramp

primary
#2A5AA6
secondary
#C2A06A
accent
#A645E3
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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