#2A4FA7#2A4FA7

#2A4FA7 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.148 H 264.2°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#2A4FA7
RGBrgb(42, 79, 167)
HSLhsl(222, 60%, 41%)
HSVhsv(222, 75%, 65%)
CMYKcmyk(74.9%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.74, 18.59, -51.23)
CIE-LCHlch(35.74, 54.50, 289.94°)
OKLaboklab(45.26% -0.0151 -0.1474)
OKLCHoklch(45.26% 0.148 264.2)
XYZxyz(10.7234, 8.8731, 37.6992)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FA7 #A7822A
analogous
#2A8DA7 #2A4FA7 #432AA7
triadic
#2A4FA7 #A72A4F #4FA72A
tetradic
#2A4FA7 #A72A8D #A7822A #2AA743
square
#2A4FA7 #A72A8D #A7822A #2AA743
split-complementary
#2A4FA7 #A7432A #8DA72A
monochromatic
#112145 #1E3876 #2A4FA7 #3F6ACF #7090DB

Accessibility & contrast

On white

7.57
#2A4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4FA7
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FA7#FFFFFF#000000##FFFFFF
##2A4FA71.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4fa7;
/* rgb */ color: rgb(42, 79, 167);
/* oklch */ color: oklch(45.3% 0.148 264.2);
Tailwind
colors: {
  custom: {
    50: '#757fc2',
    500: '#2a4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fa7;
$custom-light: #757fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fa7",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 222.24,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45258,
    "c": 0.14821,
    "h": 264.2
  },
  "luminance": 0.08874
}

Semantic roles & 50–950 ramp

primary
#2A4FA7
secondary
#C2A86B
accent
#B445E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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