#2A4FC2#2A4FC2

#2A4FC2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.5% C 0.185 H 265.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2A4FC2
RGBrgb(42, 79, 194)
HSLhsl(225, 64%, 46%)
HSVhsv(225, 78%, 76%)
CMYKcmyk(78.4%, 59.3%, 0%, 23.9%)
CIE-LABlab(37.80, 28.87, -63.81)
CIE-LCHlch(37.80, 70.04, 294.35°)
OKLaboklab(47.46% -0.0134 -0.1844)
OKLCHoklch(47.46% 0.185 265.8)
XYZxyz(13.4850, 9.9777, 52.2437)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FC2 #C29D2A
analogous
#2A9BC2 #2A4FC2 #512AC2
triadic
#2A4FC2 #C22A4F #4FC22A
tetradic
#2A4FC2 #C22A9B #C29D2A #2AC251
square
#2A4FC2 #C22A9B #C29D2A #2AC251
split-complementary
#2A4FC2 #C2512A #9BC22A
monochromatic
#14265D #1F3B90 #2A4FC2 #5071D9 #829AE4

Accessibility & contrast

On white

7.01
#2A4FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2A4FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A4FC2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FC2#FFFFFF#000000##FFFFFF
##2A4FC21.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a4fc2;
/* rgb */ color: rgb(42, 79, 194);
/* oklch */ color: oklch(47.5% 0.185 265.8);
Tailwind
colors: {
  custom: {
    50: '#7c7fd5',
    500: '#2a4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fc2;
$custom-light: #7c7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fc2",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 225.395,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47461,
    "c": 0.18489,
    "h": 265.8
  },
  "luminance": 0.09979
}

Semantic roles & 50–950 ramp

primary
#2A4FC2
secondary
#CDB97B
accent
#BF40E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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