#2A5BBB#2A5BBB

#2A5BBB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.161 H 262.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#2A5BBB
RGBrgb(42, 91, 187)
HSLhsl(220, 63%, 45%)
HSVhsv(220, 78%, 73%)
CMYKcmyk(77.5%, 51.3%, 0%, 26.7%)
CIE-LABlab(40.51, 18.34, -55.33)
CIE-LCHlch(40.51, 58.29, 288.34°)
OKLaboklab(49.34% -0.0224 -0.1593)
OKLCHoklch(49.34% 0.161 262)
XYZxyz(13.6623, 11.5607, 48.5155)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BBB #BB8A2A
analogous
#2AA4BB #2A5BBB #412ABB
triadic
#2A5BBB #BB2A5B #5BBB2A
tetradic
#2A5BBB #BB2AA4 #BB8A2A #2ABB41
square
#2A5BBB #BB2AA4 #BB8A2A #2ABB41
split-complementary
#2A5BBB #BB412A #A4BB2A
monochromatic
#142A57 #1F4389 #2A5BBB #4C7BD7 #7D9FE2

Accessibility & contrast

On white

6.34
#2A5BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2A5BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BBB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BBB#FFFFFF#000000##FFFFFF
##2A5BBB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C66BE
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a5bbb;
/* rgb */ color: rgb(42, 91, 187);
/* oklch */ color: oklch(49.3% 0.161 262.0);
Tailwind
colors: {
  custom: {
    50: '#7988d0',
    500: '#2a5bbb',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bbb;
$custom-light: #7988d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bbb",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 219.724,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49338,
    "c": 0.16082,
    "h": 262
  },
  "luminance": 0.11562
}

Semantic roles & 50–950 ramp

primary
#2A5BBB
secondary
#CAAE76
accent
#AF41E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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