#2A4FC6#2A4FC6

#2A4FC6 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.190 H 266.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2A4FC6
RGBrgb(42, 79, 198)
HSLhsl(226, 65%, 47%)
HSVhsv(226, 79%, 78%)
CMYKcmyk(78.8%, 60.1%, 0%, 22.4%)
CIE-LABlab(38.13, 30.37, -65.61)
CIE-LCHlch(38.13, 72.30, 294.84°)
OKLaboklab(47.8% -0.0133 -0.1897)
OKLCHoklch(47.8% 0.19 266)
XYZxyz(13.9403, 10.1598, 54.6415)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FC6 #C6A12A
analogous
#2A9DC6 #2A4FC6 #532AC6
triadic
#2A4FC6 #C62A4F #4FC62A
tetradic
#2A4FC6 #C62A9D #C6A12A #2AC653
square
#2A4FC6 #C62A9D #C6A12A #2AC653
split-complementary
#2A4FC6 #C6532A #9DC62A
monochromatic
#152761 #1F3B94 #2A4FC6 #5373DA #859CE5

Accessibility & contrast

On white

6.93
#2A4FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2A4FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A4FC6
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FC6#FFFFFF#000000##FFFFFF
##2A4FC61.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0053C4
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a4fc6;
/* rgb */ color: rgb(42, 79, 198);
/* oklch */ color: oklch(47.8% 0.190 266.0);
Tailwind
colors: {
  custom: {
    50: '#7d7fd8',
    500: '#2a4fc6',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fc6;
$custom-light: #7d7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fc6",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 198
  },
  "hsl": {
    "h": 225.769,
    "s": 65,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47804,
    "c": 0.19015,
    "h": 266
  },
  "luminance": 0.10161
}

Semantic roles & 50–950 ramp

primary
#2A4FC6
secondary
#CEBB7D
accent
#C040E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #2A4FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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