#2A5CB5#2A5CB5

#2A5CB5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.1% C 0.151 H 260.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2A5CB5
RGBrgb(42, 92, 181)
HSLhsl(218, 62%, 44%)
HSVhsv(218, 77%, 71%)
CMYKcmyk(76.8%, 49.2%, 0%, 29%)
CIE-LABlab(40.38, 15.39, -52.02)
CIE-LCHlch(40.38, 54.25, 286.48°)
OKLaboklab(49.11% -0.0239 -0.1495)
OKLCHoklch(49.11% 0.151 260.9)
XYZxyz(13.1195, 11.4812, 45.2318)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CB5 #B5832A
analogous
#2AA1B5 #2A5CB5 #3D2AB5
triadic
#2A5CB5 #B52A5C #5CB52A
tetradic
#2A5CB5 #B52AA1 #B5832A #2AB53D
square
#2A5CB5 #B52AA1 #B5832A #2AB53D
split-complementary
#2A5CB5 #B53D2A #A1B52A
monochromatic
#132A52 #1E4383 #2A5CB5 #487AD4 #799EE0

Accessibility & contrast

On white

6.37
#2A5CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2A5CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CB5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CB5#FFFFFF#000000##FFFFFF
##2A5CB51.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2866B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5cb5;
/* rgb */ color: rgb(42, 92, 181);
/* oklch */ color: oklch(49.1% 0.151 260.9);
Tailwind
colors: {
  custom: {
    50: '#7889cc',
    500: '#2a5cb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cb5;
$custom-light: #7889cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cb5",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 218.417,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49108,
    "c": 0.15142,
    "h": 260.9
  },
  "luminance": 0.11483
}

Semantic roles & 50–950 ramp

primary
#2A5CB5
secondary
#C8A973
accent
#AB42E5
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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