#2A5CB2#2A5CB2

#2A5CB2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.9% C 0.147 H 260.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#2A5CB2
RGBrgb(42, 92, 178)
HSLhsl(218, 62%, 43%)
HSVhsv(218, 76%, 70%)
CMYKcmyk(76.4%, 48.3%, 0%, 30.2%)
CIE-LABlab(40.18, 14.24, -50.58)
CIE-LCHlch(40.18, 52.55, 285.72°)
OKLaboklab(48.89% -0.0244 -0.1453)
OKLCHoklch(48.89% 0.147 260.5)
XYZxyz(12.8150, 11.3594, 43.6280)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CB2 #B2802A
analogous
#2AA0B2 #2A5CB2 #3C2AB2
triadic
#2A5CB2 #B22A5C #5CB22A
tetradic
#2A5CB2 #B22AA0 #B2802A #2AB23C
square
#2A5CB2 #B22AA0 #B2802A #2AB23C
split-complementary
#2A5CB2 #B23C2A #A0B22A
monochromatic
#13294F #1E4280 #2A5CB2 #467AD3 #779DDF

Accessibility & contrast

On white

6.42
#2A5CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2A5CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CB2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CB2#FFFFFF#000000##FFFFFF
##2A5CB21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5cb2;
/* rgb */ color: rgb(42, 92, 178);
/* oklch */ color: oklch(48.9% 0.147 260.5);
Tailwind
colors: {
  custom: {
    50: '#7789ca',
    500: '#2a5cb2',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cb2;
$custom-light: #7789ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cb2",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 217.941,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48891,
    "c": 0.14731,
    "h": 260.5
  },
  "luminance": 0.11361
}

Semantic roles & 50–950 ramp

primary
#2A5CB2
secondary
#C7A771
accent
#A943E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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