#2A5AC6#2A5AC6

#2A5AC6 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.177 H 263.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#2A5AC6
RGBrgb(42, 90, 198)
HSLhsl(222, 65%, 47%)
HSVhsv(222, 79%, 78%)
CMYKcmyk(78.8%, 54.5%, 0%, 22.4%)
CIE-LABlab(41.02, 23.20, -60.89)
CIE-LCHlch(41.02, 65.16, 290.86°)
OKLaboklab(49.98% -0.0205 -0.1756)
OKLCHoklch(49.98% 0.177 263.3)
XYZxyz(14.8004, 11.8801, 54.9282)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AC6 #C6962A
analogous
#2AA8C6 #2A5AC6 #482AC6
triadic
#2A5AC6 #C62A5A #5AC62A
tetradic
#2A5AC6 #C62AA8 #C6962A #2AC648
square
#2A5AC6 #C62AA8 #C6962A #2AC648
split-complementary
#2A5AC6 #C6482A #A8C62A
monochromatic
#152C61 #1F4394 #2A5AC6 #537DDA #85A3E5

Accessibility & contrast

On white

6.22
#2A5AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2A5AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AC6
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AC6#FFFFFF#000000##FFFFFF
##2A5AC61.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5ac6;
/* rgb */ color: rgb(42, 90, 198);
/* oklch */ color: oklch(50.0% 0.177 263.3);
Tailwind
colors: {
  custom: {
    50: '#7c88d8',
    500: '#2a5ac6',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ac6;
$custom-light: #7c88d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ac6",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 198
  },
  "hsl": {
    "h": 221.538,
    "s": 65,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4998,
    "c": 0.17684,
    "h": 263.3
  },
  "luminance": 0.11882
}

Semantic roles & 50–950 ramp

primary
#2A5AC6
secondary
#CEB57D
accent
#B440E8
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2A5AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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