#2A5CBB#2A5CBB

#2A5CBB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.160 H 261.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#2A5CBB
RGBrgb(42, 92, 187)
HSLhsl(219, 63%, 45%)
HSVhsv(219, 78%, 73%)
CMYKcmyk(77.5%, 50.8%, 0%, 26.7%)
CIE-LABlab(40.79, 17.69, -54.88)
CIE-LCHlch(40.79, 57.66, 287.87°)
OKLaboklab(49.55% -0.0231 -0.1579)
OKLCHoklch(49.55% 0.16 261.7)
XYZxyz(13.7484, 11.7328, 48.5441)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CBB #BB892A
analogous
#2AA5BB #2A5CBB #402ABB
triadic
#2A5CBB #BB2A5C #5CBB2A
tetradic
#2A5CBB #BB2AA5 #BB892A #2ABB40
square
#2A5CBB #BB2AA5 #BB892A #2ABB40
split-complementary
#2A5CBB #BB402A #A5BB2A
monochromatic
#142B57 #1F4389 #2A5CBB #4C7CD7 #7DA0E2

Accessibility & contrast

On white

6.27
#2A5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2A5CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CBB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CBB#FFFFFF#000000##FFFFFF
##2A5CBB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BE
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5cbb;
/* rgb */ color: rgb(42, 92, 187);
/* oklch */ color: oklch(49.6% 0.160 261.7);
Tailwind
colors: {
  custom: {
    50: '#7989d0',
    500: '#2a5cbb',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cbb;
$custom-light: #7989d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cbb",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 219.31,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49551,
    "c": 0.1596,
    "h": 261.7
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

primary
#2A5CBB
secondary
#CAAD76
accent
#AD41E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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