#2A4FA1#2A4FA1

#2A4FA1 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.140 H 263.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#2A4FA1
RGBrgb(42, 79, 161)
HSLhsl(221, 59%, 40%)
HSVhsv(221, 74%, 63%)
CMYKcmyk(73.9%, 50.9%, 0%, 36.9%)
CIE-LABlab(35.31, 16.28, -48.33)
CIE-LCHlch(35.31, 51.00, 288.62°)
OKLaboklab(44.8% -0.0158 -0.1389)
OKLCHoklch(44.8% 0.14 263.5)
XYZxyz(10.1816, 8.6563, 34.8455)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FA1 #A17C2A
analogous
#2A8AA1 #2A4FA1 #412AA1
triadic
#2A4FA1 #A12A4F #4FA12A
tetradic
#2A4FA1 #A12A8A #A17C2A #2AA141
square
#2A4FA1 #A12A8A #A17C2A #2AA141
split-complementary
#2A4FA1 #A1412A #8AA12A
monochromatic
#111F40 #1D3770 #2A4FA1 #3C69CC #6D8ED9

Accessibility & contrast

On white

7.69
#2A4FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2A4FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FA1
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FA1#FFFFFF#000000##FFFFFF
##2A4FA11.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E59A4
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4fa1;
/* rgb */ color: rgb(42, 79, 161);
/* oklch */ color: oklch(44.8% 0.140 263.5);
Tailwind
colors: {
  custom: {
    50: '#747fbd',
    500: '#2a4fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fa1;
$custom-light: #747fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fa1",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 221.345,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44799,
    "c": 0.13978,
    "h": 263.5
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#2A4FA1
secondary
#C0A467
accent
#B146E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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