#2A4FA6#2A4FA6

#2A4FA6 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.147 H 264.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2A4FA6
RGBrgb(42, 79, 166)
HSLhsl(222, 60%, 41%)
HSVhsv(222, 75%, 65%)
CMYKcmyk(74.7%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.67, 18.21, -50.75)
CIE-LCHlch(35.67, 53.92, 289.73°)
OKLaboklab(45.18% -0.0152 -0.146)
OKLCHoklch(45.18% 0.147 264.1)
XYZxyz(10.6313, 8.8362, 37.2143)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FA6 #A6812A
analogous
#2A8DA6 #2A4FA6 #432AA6
triadic
#2A4FA6 #A62A4F #4FA62A
tetradic
#2A4FA6 #A62A8D #A6812A #2AA643
square
#2A4FA6 #A62A8D #A6812A #2AA643
split-complementary
#2A4FA6 #A6432A #8DA62A
monochromatic
#112144 #1E3875 #2A4FA6 #3F6ACE #7090DB

Accessibility & contrast

On white

7.59
#2A4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2A4FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FA6
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FA6#FFFFFF#000000##FFFFFF
##2A4FA61.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AA9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4fa6;
/* rgb */ color: rgb(42, 79, 166);
/* oklch */ color: oklch(45.2% 0.147 264.1);
Tailwind
colors: {
  custom: {
    50: '#757fc1',
    500: '#2a4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fa6;
$custom-light: #757fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fa6",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 222.097,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45181,
    "c": 0.14681,
    "h": 264.1
  },
  "luminance": 0.08837
}

Semantic roles & 50–950 ramp

primary
#2A4FA6
secondary
#C2A86A
accent
#B445E3
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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