#2A4DC7#2A4DC7

#2A4DC7 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.5% C 0.194 H 266.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#2A4DC7
RGBrgb(42, 77, 199)
HSLhsl(227, 65%, 47%)
HSVhsv(227, 79%, 78%)
CMYKcmyk(78.9%, 61.3%, 0%, 22%)
CIE-LABlab(37.70, 32.04, -66.89)
CIE-LCHlch(37.70, 74.17, 295.60°)
OKLaboklab(47.51% -0.0121 -0.1934)
OKLCHoklch(47.51% 0.194 266.4)
XYZxyz(13.9139, 9.9219, 55.2036)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DC7 #C7A42A
analogous
#2A9CC7 #2A4DC7 #552AC7
triadic
#2A4DC7 #C72A4D #4DC72A
tetradic
#2A4DC7 #C72A9C #C7A42A #2AC755
square
#2A4DC7 #C72A9C #C7A42A #2AC755
split-complementary
#2A4DC7 #C7552A #9CC72A
monochromatic
#152662 #1F3994 #2A4DC7 #5372DB #869BE5

Accessibility & contrast

On white

7.04
#2A4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2A4DC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DC7
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DC7#FFFFFF#000000##FFFFFF
##2A4DC71.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a4dc7;
/* rgb */ color: rgb(42, 77, 199);
/* oklch */ color: oklch(47.5% 0.194 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d7ed9',
    500: '#2a4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #2a4dc7;
$custom-light: #7d7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4dc7",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 226.624,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47513,
    "c": 0.19383,
    "h": 266.4
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#2A4DC7
secondary
#CFBD7E
accent
#C340E8
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #2A4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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