#2A5BBC#2A5BBC

#2A5BBC is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.162 H 262.1°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2A5BBC
RGBrgb(42, 91, 188)
HSLhsl(220, 63%, 45%)
HSVhsv(220, 78%, 74%)
CMYKcmyk(77.7%, 51.6%, 0%, 26.3%)
CIE-LABlab(40.58, 18.73, -55.80)
CIE-LCHlch(40.58, 58.86, 288.55°)
OKLaboklab(49.41% -0.0222 -0.1606)
OKLCHoklch(49.41% 0.162 262.1)
XYZxyz(13.7698, 11.6037, 49.0812)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BBC #BC8B2A
analogous
#2AA4BC #2A5BBC #422ABC
triadic
#2A5BBC #BC2A5B #5BBC2A
tetradic
#2A5BBC #BC2AA4 #BC8B2A #2ABC42
square
#2A5BBC #BC2AA4 #BC8B2A #2ABC42
split-complementary
#2A5BBC #BC422A #A4BC2A
monochromatic
#142B58 #1F438A #2A5BBC #4C7BD7 #7EA0E2

Accessibility & contrast

On white

6.32
#2A5BBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2A5BBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BBC
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BBC#FFFFFF#000000##FFFFFF
##2A5BBC1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67BF
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5bbc;
/* rgb */ color: rgb(42, 91, 188);
/* oklch */ color: oklch(49.4% 0.162 262.1);
Tailwind
colors: {
  custom: {
    50: '#7a88d1',
    500: '#2a5bbc',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bbc;
$custom-light: #7a88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bbc",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 188
  },
  "hsl": {
    "h": 219.863,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49414,
    "c": 0.16218,
    "h": 262.1
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#2A5BBC
secondary
#CBAF77
accent
#AF41E7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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