#2A5BC1#2A5BC1

#2A5BC1 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.8% C 0.169 H 262.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#2A5BC1
RGBrgb(42, 91, 193)
HSLhsl(221, 64%, 46%)
HSVhsv(221, 78%, 76%)
CMYKcmyk(78.2%, 52.8%, 0%, 24.3%)
CIE-LABlab(40.93, 20.64, -58.14)
CIE-LCHlch(40.93, 61.69, 289.55°)
OKLaboklab(49.8% -0.0217 -0.1675)
OKLCHoklch(49.8% 0.169 262.6)
XYZxyz(14.3181, 11.8230, 51.9692)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5BC1 #C1902A
analogous
#2AA6C1 #2A5BC1 #452AC1
triadic
#2A5BC1 #C12A5B #5BC12A
tetradic
#2A5BC1 #C12AA6 #C1902A #2AC145
square
#2A5BC1 #C12AA6 #C1902A #2AC145
split-complementary
#2A5BC1 #C1452A #A6C12A
monochromatic
#142C5C #1F438F #2A5BC1 #4F7CD9 #82A1E4

Accessibility & contrast

On white

6.24
#2A5BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2A5BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5BC1
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5BC1#FFFFFF#000000##FFFFFF
##2A5BC11.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E68C5
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5bc1;
/* rgb */ color: rgb(42, 91, 193);
/* oklch */ color: oklch(49.8% 0.169 262.6);
Tailwind
colors: {
  custom: {
    50: '#7b88d4',
    500: '#2a5bc1',
    950: '#000000',
  },
}
SCSS
$custom: #2a5bc1;
$custom-light: #7b88d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5bc1",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 193
  },
  "hsl": {
    "h": 220.53,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49796,
    "c": 0.16893,
    "h": 262.6
  },
  "luminance": 0.11825
}

Semantic roles & 50–950 ramp

primary
#2A5BC1
secondary
#CDB27A
accent
#B141E7
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2A5BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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