#2A5AAB#2A5AAB

#2A5AAB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.140 H 260.2°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#2A5AAB
RGBrgb(42, 90, 171)
HSLhsl(218, 61%, 42%)
HSVhsv(218, 75%, 67%)
CMYKcmyk(75.4%, 47.4%, 0%, 32.9%)
CIE-LABlab(39.15, 12.85, -48.12)
CIE-LCHlch(39.15, 49.81, 284.95°)
OKLaboklab(47.95% -0.0238 -0.1381)
OKLCHoklch(47.95% 0.14 260.2)
XYZxyz(11.9590, 10.7435, 39.9636)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AAB #AB7B2A
analogous
#2A9BAB #2A5AAB #3A2AAB
triadic
#2A5AAB #AB2A5A #5AAB2A
tetradic
#2A5AAB #AB2A9B #AB7B2A #2AAB3A
square
#2A5AAB #AB2A9B #AB7B2A #2AAB3A
split-complementary
#2A5AAB #AB3A2A #9BAB2A
monochromatic
#122649 #1E407A #2A5AAB #4277D1 #739ADD

Accessibility & contrast

On white

6.67
#2A5AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2A5AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AAB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AAB#FFFFFF#000000##FFFFFF
##2A5AAB1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E62AE
Deuteranopia (green-blind)
#0C57A9
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5aab;
/* rgb */ color: rgb(42, 90, 171);
/* oklch */ color: oklch(47.9% 0.140 260.2);
Tailwind
colors: {
  custom: {
    50: '#7688c4',
    500: '#2a5aab',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aab;
$custom-light: #7688c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aab",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 171
  },
  "hsl": {
    "h": 217.674,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47949,
    "c": 0.1401,
    "h": 260.2
  },
  "luminance": 0.10745
}

Semantic roles & 50–950 ramp

primary
#2A5AAB
secondary
#C4A46D
accent
#A844E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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