#2A5BC7#2A5BC7

#2A5BC7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.177 H 263.1°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#2A5BC7
RGBrgb(42, 91, 199)
HSLhsl(221, 65%, 47%)
HSVhsv(221, 79%, 78%)
CMYKcmyk(78.9%, 54.3%, 0%, 22%)
CIE-LABlab(41.37, 22.93, -60.91)
CIE-LCHlch(41.37, 65.09, 290.63°)
OKLaboklab(50.26% -0.0211 -0.1757)
OKLCHoklch(50.26% 0.177 263.1)
XYZxyz(15.0010, 12.0962, 55.5659)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BC7 #C7962A
analogous
#2AA9C7 #2A5BC7 #482AC7
triadic
#2A5BC7 #C72A5B #5BC72A
tetradic
#2A5BC7 #C72AA9 #C7962A #2AC748
square
#2A5BC7 #C72AA9 #C7962A #2AC748
split-complementary
#2A5BC7 #C7482A #A9C72A
monochromatic
#152D62 #1F4494 #2A5BC7 #537EDB #86A4E5

Accessibility & contrast

On white

6.14
#2A5BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2A5BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BC7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BC7#FFFFFF#000000##FFFFFF
##2A5BC71.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a5bc7;
/* rgb */ color: rgb(42, 91, 199);
/* oklch */ color: oklch(50.3% 0.177 263.1);
Tailwind
colors: {
  custom: {
    50: '#7c88d9',
    500: '#2a5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bc7;
$custom-light: #7c88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bc7",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 221.274,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50264,
    "c": 0.17696,
    "h": 263.1
  },
  "luminance": 0.12098
}

Semantic roles & 50–950 ramp

primary
#2A5BC7
secondary
#CFB67E
accent
#B440E8
background
#F8F8FD
surface
#EFEFFB
border
#CACAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2A5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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