#2A5CBD#2A5CBD

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

Color values

HEX#2A5CBD
RGBrgb(42, 92, 189)
HSLhsl(220, 64%, 45%)
HSVhsv(220, 78%, 74%)
CMYKcmyk(77.8%, 51.3%, 0%, 25.9%)
CIE-LABlab(40.93, 18.46, -55.82)
CIE-LCHlch(40.93, 58.79, 288.30°)
OKLaboklab(49.7% -0.0229 -0.1607)
OKLCHoklch(49.7% 0.162 261.9)
XYZxyz(13.9640, 11.8190, 49.6796)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CBD #BD8B2A
analogous
#2AA5BD #2A5CBD #422ABD
triadic
#2A5CBD #BD2A5C #5CBD2A
tetradic
#2A5CBD #BD2AA5 #BD8B2A #2ABD42
square
#2A5CBD #BD2AA5 #BD8B2A #2ABD42
split-complementary
#2A5CBD #BD422A #A5BD2A
monochromatic
#142B59 #1F448B #2A5CBD #4D7CD7 #7FA1E3

Accessibility & contrast

On white

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

On black

3.36
#2A5CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A5CBD#FFFFFF#000000##FFFFFF
##2A5CBD1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C68C0
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5cbd;
/* rgb */ color: rgb(42, 92, 189);
/* oklch */ color: oklch(49.7% 0.162 261.9);
Tailwind
colors: {
  custom: {
    50: '#7a89d2',
    500: '#2a5cbd',
    950: '#000000',
  },
}
SCSS
$custom: #2a5cbd;
$custom-light: #7a89d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5cbd",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 189
  },
  "hsl": {
    "h": 219.592,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.16231,
    "h": 261.9
  },
  "luminance": 0.11821
}

Semantic roles & 50–950 ramp

primary
#2A5CBD
secondary
#CBAF78
accent
#AE41E7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2A5CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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