#2A5CAA#2A5CAA

#2A5CAA is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.136 H 259.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#2A5CAA
RGBrgb(42, 92, 170)
HSLhsl(217, 60%, 42%)
HSVhsv(217, 75%, 67%)
CMYKcmyk(75.3%, 45.9%, 0%, 33.3%)
CIE-LABlab(39.66, 11.16, -46.70)
CIE-LCHlch(39.66, 48.01, 283.44°)
OKLaboklab(48.33% -0.0257 -0.1338)
OKLCHoklch(48.33% 0.136 259.1)
XYZxyz(12.0351, 11.0475, 39.5205)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CAA #AA782A
analogous
#2A9CAA #2A5CAA #382AAA
triadic
#2A5CAA #AA2A5C #5CAA2A
tetradic
#2A5CAA #AA2A9C #AA782A #2AAA38
square
#2A5CAA #AA2A9C #AA782A #2AAA38
split-complementary
#2A5CAA #AA382A #9CAA2A
monochromatic
#122748 #1E4179 #2A5CAA #4179D0 #729CDC

Accessibility & contrast

On white

6.54
#2A5CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2A5CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CAA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CAA#FFFFFF#000000##FFFFFF
##2A5CAA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AD
Deuteranopia (green-blind)
#1858A8
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5caa;
/* rgb */ color: rgb(42, 92, 170);
/* oklch */ color: oklch(48.3% 0.136 259.1);
Tailwind
colors: {
  custom: {
    50: '#7589c4',
    500: '#2a5caa',
    950: '#000000',
  },
}
SCSS
$custom: #2a5caa;
$custom-light: #7589c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5caa",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 170
  },
  "hsl": {
    "h": 216.563,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48325,
    "c": 0.1363,
    "h": 259.1
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#2A5CAA
secondary
#C3A16C
accent
#A544E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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