#2A5CB4#2A5CB4

#2A5CB4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.150 H 260.8°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2A5CB4
RGBrgb(42, 92, 180)
HSLhsl(218, 62%, 44%)
HSVhsv(218, 77%, 71%)
CMYKcmyk(76.7%, 48.9%, 0%, 29.4%)
CIE-LABlab(40.31, 15.00, -51.55)
CIE-LCHlch(40.31, 53.68, 286.23°)
OKLaboklab(49.04% -0.0241 -0.1481)
OKLCHoklch(49.04% 0.15 260.8)
XYZxyz(13.0172, 11.4403, 44.6933)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CB4 #B4822A
analogous
#2AA1B4 #2A5CB4 #3D2AB4
triadic
#2A5CB4 #B42A5C #5CB42A
tetradic
#2A5CB4 #B42AA1 #B4822A #2AB43D
square
#2A5CB4 #B42AA1 #B4822A #2AB43D
split-complementary
#2A5CB4 #B43D2A #A1B42A
monochromatic
#132951 #1E4382 #2A5CB4 #477AD4 #799EE0

Accessibility & contrast

On white

6.39
#2A5CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A5CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CB4
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CB4#FFFFFF#000000##FFFFFF
##2A5CB41.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A66B7
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5cb4;
/* rgb */ color: rgb(42, 92, 180);
/* oklch */ color: oklch(49.0% 0.150 260.8);
Tailwind
colors: {
  custom: {
    50: '#7889cb',
    500: '#2a5cb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cb4;
$custom-light: #7889cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cb4",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 180
  },
  "hsl": {
    "h": 218.261,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49035,
    "c": 0.15006,
    "h": 260.8
  },
  "luminance": 0.11442
}

Semantic roles & 50–950 ramp

primary
#2A5CB4
secondary
#C8A972
accent
#AA43E5
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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