#2A4AC7#2A4AC7

#2A4AC7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.0% C 0.197 H 267.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2A4AC7
RGBrgb(42, 74, 199)
HSLhsl(228, 65%, 47%)
HSVhsv(228, 79%, 78%)
CMYKcmyk(78.9%, 62.8%, 0%, 22%)
CIE-LABlab(36.95, 33.98, -68.12)
CIE-LCHlch(36.95, 76.12, 296.51°)
OKLaboklab(46.96% -0.0104 -0.1971)
OKLCHoklch(46.96% 0.197 267)
XYZxyz(13.7088, 9.5117, 55.1352)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AC7 #C7A72A
analogous
#2A98C7 #2A4AC7 #592AC7
triadic
#2A4AC7 #C72A4A #4AC72A
tetradic
#2A4AC7 #C72A98 #C7A72A #2AC759
square
#2A4AC7 #C72A98 #C7A72A #2AC759
split-complementary
#2A4AC7 #C7592A #98C72A
monochromatic
#152462 #1F3794 #2A4AC7 #536FDB #8699E5

Accessibility & contrast

On white

7.23
#2A4AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2A4AC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AC7
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AC7#FFFFFF#000000##FFFFFF
##2A4AC71.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#006B81
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a4ac7;
/* rgb */ color: rgb(42, 74, 199);
/* oklch */ color: oklch(47.0% 0.197 267.0);
Tailwind
colors: {
  custom: {
    50: '#7d7cd9',
    500: '#2a4ac7',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ac7;
$custom-light: #7d7cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ac7",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 227.771,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46958,
    "c": 0.19735,
    "h": 267
  },
  "luminance": 0.09513
}

Semantic roles & 50–950 ramp

primary
#2A4AC7
secondary
#CFBE7E
accent
#C640E8
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #2A4AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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