#2A5AC7#2A5AC7

#2A5AC7 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.178 H 263.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#2A5AC7
RGBrgb(42, 90, 199)
HSLhsl(222, 65%, 47%)
HSVhsv(222, 79%, 78%)
CMYKcmyk(78.9%, 54.8%, 0%, 22%)
CIE-LABlab(41.10, 23.58, -61.35)
CIE-LCHlch(41.10, 65.73, 291.02°)
OKLaboklab(50.06% -0.0204 -0.177)
OKLCHoklch(50.06% 0.178 263.4)
XYZxyz(14.9161, 11.9263, 55.5376)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AC7 #C7972A
analogous
#2AA9C7 #2A5AC7 #492AC7
triadic
#2A5AC7 #C72A5A #5AC72A
tetradic
#2A5AC7 #C72AA9 #C7972A #2AC749
square
#2A5AC7 #C72AA9 #C7972A #2AC749
split-complementary
#2A5AC7 #C7492A #A9C72A
monochromatic
#152C62 #1F4394 #2A5AC7 #537DDB #86A3E5

Accessibility & contrast

On white

6.20
#2A5AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2A5AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AC7
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AC7#FFFFFF#000000##FFFFFF
##2A5AC71.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a5ac7;
/* rgb */ color: rgb(42, 90, 199);
/* oklch */ color: oklch(50.1% 0.178 263.4);
Tailwind
colors: {
  custom: {
    50: '#7c88d9',
    500: '#2a5ac7',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ac7;
$custom-light: #7c88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ac7",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 199
  },
  "hsl": {
    "h": 221.656,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.17818,
    "h": 263.4
  },
  "luminance": 0.11928
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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