#2A5CA4#2A5CA4

#2A5CA4 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.128 H 257.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2A5CA4
RGBrgb(42, 92, 164)
HSLhsl(215, 59%, 40%)
HSVhsv(215, 74%, 64%)
CMYKcmyk(74.4%, 43.9%, 0%, 35.7%)
CIE-LABlab(39.29, 8.86, -43.74)
CIE-LCHlch(39.29, 44.63, 281.45°)
OKLaboklab(47.91% -0.0269 -0.1251)
OKLCHoklch(47.91% 0.128 257.9)
XYZxyz(11.4804, 10.8256, 36.5993)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CA4 #A4722A
analogous
#2A99A4 #2A5CA4 #352AA4
triadic
#2A5CA4 #A42A5C #5CA42A
tetradic
#2A5CA4 #A42A99 #A4722A #2AA435
square
#2A5CA4 #A42A99 #A4722A #2AA435
split-complementary
#2A5CA4 #A4352A #99A42A
monochromatic
#112543 #1E4173 #2A5CA4 #3E79CD #6E9BDA

Accessibility & contrast

On white

6.63
#2A5CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2A5CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CA4
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CA4#FFFFFF#000000##FFFFFF
##2A5CA41.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A7
Deuteranopia (green-blind)
#2257A3
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5ca4;
/* rgb */ color: rgb(42, 92, 164);
/* oklch */ color: oklch(47.9% 0.128 257.9);
Tailwind
colors: {
  custom: {
    50: '#7489bf',
    500: '#2a5ca4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ca4;
$custom-light: #7489bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ca4",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 164
  },
  "hsl": {
    "h": 215.41,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47914,
    "c": 0.12801,
    "h": 257.9
  },
  "luminance": 0.10827
}

Semantic roles & 50–950 ramp

primary
#2A5CA4
secondary
#C19D69
accent
#A245E2
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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