#2A4FA8#2A4FA8

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

Color values

HEX#2A4FA8
RGBrgb(42, 79, 168)
HSLhsl(222, 60%, 41%)
HSVhsv(222, 75%, 66%)
CMYKcmyk(75%, 53%, 0%, 34.1%)
CIE-LABlab(35.81, 18.97, -51.71)
CIE-LCHlch(35.81, 55.09, 290.15°)
OKLaboklab(45.34% -0.015 -0.1488)
OKLCHoklch(45.34% 0.15 264.2)
XYZxyz(10.8162, 8.9102, 38.1880)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FA8 #A8832A
analogous
#2A8EA8 #2A4FA8 #442AA8
triadic
#2A4FA8 #A82A4F #4FA82A
tetradic
#2A4FA8 #A82A8E #A8832A #2AA844
square
#2A4FA8 #A82A8E #A8832A #2AA844
split-complementary
#2A4FA8 #A8442A #8EA82A
monochromatic
#122146 #1E3877 #2A4FA8 #406ACF #7190DB

Accessibility & contrast

On white

7.55
#2A4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A4FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FA8
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FA8#FFFFFF#000000##FFFFFF
##2A4FA81.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4fa8;
/* rgb */ color: rgb(42, 79, 168);
/* oklch */ color: oklch(45.3% 0.150 264.2);
Tailwind
colors: {
  custom: {
    50: '#767fc2',
    500: '#2a4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fa8;
$custom-light: #767fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fa8",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 222.381,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45335,
    "c": 0.1496,
    "h": 264.2
  },
  "luminance": 0.08911
}

Semantic roles & 50–950 ramp

primary
#2A4FA8
secondary
#C3A96B
accent
#B545E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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