#2A4BC7#2A4BC7

#2A4BC7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.1% C 0.196 H 266.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2A4BC7
RGBrgb(42, 75, 199)
HSLhsl(227, 65%, 47%)
HSVhsv(227, 79%, 78%)
CMYKcmyk(78.9%, 62.3%, 0%, 22%)
CIE-LABlab(37.20, 33.33, -67.71)
CIE-LCHlch(37.20, 75.47, 296.21°)
OKLaboklab(47.14% -0.0109 -0.1959)
OKLCHoklch(47.14% 0.196 266.8)
XYZxyz(13.7761, 9.6463, 55.1576)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4BC7 #C7A62A
analogous
#2A99C7 #2A4BC7 #582AC7
triadic
#2A4BC7 #C72A4B #4BC72A
tetradic
#2A4BC7 #C72A99 #C7A62A #2AC758
square
#2A4BC7 #C72A99 #C7A62A #2AC758
split-complementary
#2A4BC7 #C7582A #99C72A
monochromatic
#152562 #1F3894 #2A4BC7 #5370DB #869AE5

Accessibility & contrast

On white

7.17
#2A4BC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A4BC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4BC7
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4BC7#FFFFFF#000000##FFFFFF
##2A4BC71.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#006B82
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a4bc7;
/* rgb */ color: rgb(42, 75, 199);
/* oklch */ color: oklch(47.1% 0.196 266.8);
Tailwind
colors: {
  custom: {
    50: '#7d7dd9',
    500: '#2a4bc7',
    950: '#000000',
  },
}
SCSS
$custom: #2a4bc7;
$custom-light: #7d7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4bc7",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 227.389,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47141,
    "c": 0.19618,
    "h": 266.8
  },
  "luminance": 0.09648
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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