#2A5AA8#2A5AA8

#2A5AA8 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.7% C 0.136 H 259.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA8
RGBrgb(42, 90, 168)
HSLhsl(217, 60%, 41%)
HSVhsv(217, 75%, 66%)
CMYKcmyk(75%, 46.4%, 0%, 34.1%)
CIE-LABlab(38.95, 11.70, -46.65)
CIE-LCHlch(38.95, 48.10, 284.08°)
OKLaboklab(47.74% -0.0243 -0.1337)
OKLCHoklch(47.74% 0.136 259.7)
XYZxyz(11.6763, 10.6304, 38.4747)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA8 #A8782A
analogous
#2A99A8 #2A5AA8 #392AA8
triadic
#2A5AA8 #A82A5A #5AA82A
tetradic
#2A5AA8 #A82A99 #A8782A #2AA839
square
#2A5AA8 #A82A99 #A8782A #2AA839
split-complementary
#2A5AA8 #A8392A #99A82A
monochromatic
#122646 #1E4077 #2A5AA8 #4077CF #719ADB

Accessibility & contrast

On white

6.72
#2A5AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A5AA8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA8#FFFFFF#000000##FFFFFF
##2A5AA81.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#1456A6
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5aa8;
/* rgb */ color: rgb(42, 90, 168);
/* oklch */ color: oklch(47.7% 0.136 259.7);
Tailwind
colors: {
  custom: {
    50: '#7588c2',
    500: '#2a5aa8',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa8;
$custom-light: #7588c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa8",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 168
  },
  "hsl": {
    "h": 217.143,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47737,
    "c": 0.13594,
    "h": 259.7
  },
  "luminance": 0.10632
}

Semantic roles & 50–950 ramp

primary
#2A5AA8
secondary
#C3A16B
accent
#A745E3
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2A5AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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