#2A5CBC#2A5CBC

#2A5CBC is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.161 H 261.8°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2A5CBC
RGBrgb(42, 92, 188)
HSLhsl(219, 63%, 45%)
HSVhsv(219, 78%, 74%)
CMYKcmyk(77.7%, 51.1%, 0%, 26.3%)
CIE-LABlab(40.86, 18.07, -55.35)
CIE-LCHlch(40.86, 58.22, 288.08°)
OKLaboklab(49.63% -0.023 -0.1593)
OKLCHoklch(49.63% 0.161 261.8)
XYZxyz(13.8558, 11.7758, 49.1099)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CBC #BC8A2A
analogous
#2AA5BC #2A5CBC #412ABC
triadic
#2A5CBC #BC2A5C #5CBC2A
tetradic
#2A5CBC #BC2AA5 #BC8A2A #2ABC41
square
#2A5CBC #BC2AA5 #BC8A2A #2ABC41
split-complementary
#2A5CBC #BC412A #A5BC2A
monochromatic
#142B58 #1F448A #2A5CBC #4C7CD7 #7EA0E2

Accessibility & contrast

On white

6.26
#2A5CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2A5CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CBC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CBC#FFFFFF#000000##FFFFFF
##2A5CBC1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BF
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5cbc;
/* rgb */ color: rgb(42, 92, 188);
/* oklch */ color: oklch(49.6% 0.161 261.8);
Tailwind
colors: {
  custom: {
    50: '#7989d1',
    500: '#2a5cbc',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cbc;
$custom-light: #7989d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cbc",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 188
  },
  "hsl": {
    "h": 219.452,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49626,
    "c": 0.16095,
    "h": 261.8
  },
  "luminance": 0.11777
}

Semantic roles & 50–950 ramp

primary
#2A5CBC
secondary
#CBAE77
accent
#AE41E7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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