#2A5CA7#2A5CA7

#2A5CA7 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.132 H 258.5°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#2A5CA7
RGBrgb(42, 92, 167)
HSLhsl(216, 60%, 41%)
HSVhsv(216, 75%, 65%)
CMYKcmyk(74.9%, 44.9%, 0%, 34.5%)
CIE-LABlab(39.47, 10.01, -45.22)
CIE-LCHlch(39.47, 46.32, 282.48°)
OKLaboklab(48.12% -0.0263 -0.1295)
OKLCHoklch(48.12% 0.132 258.5)
XYZxyz(11.7545, 10.9352, 38.0429)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CA7 #A7752A
analogous
#2A9AA7 #2A5CA7 #362AA7
triadic
#2A5CA7 #A72A5C #5CA72A
tetradic
#2A5CA7 #A72A9A #A7752A #2AA736
square
#2A5CA7 #A72A9A #A7752A #2AA736
split-complementary
#2A5CA7 #A7362A #9AA72A
monochromatic
#112645 #1E4176 #2A5CA7 #3F79CF #709BDB

Accessibility & contrast

On white

6.59
#2A5CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2A5CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CA7
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CA7#FFFFFF#000000##FFFFFF
##2A5CA71.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663AA
Deuteranopia (green-blind)
#1D58A5
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a5ca7;
/* rgb */ color: rgb(42, 92, 167);
/* oklch */ color: oklch(48.1% 0.132 258.5);
Tailwind
colors: {
  custom: {
    50: '#7589c1',
    500: '#2a5ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ca7;
$custom-light: #7589c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ca7",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 216,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48118,
    "c": 0.13215,
    "h": 258.5
  },
  "luminance": 0.10937
}

Semantic roles & 50–950 ramp

primary
#2A5CA7
secondary
#C29F6B
accent
#A445E3
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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