#2A4FA2#2A4FA2

#2A4FA2 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.141 H 263.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#2A4FA2
RGBrgb(42, 79, 162)
HSLhsl(222, 59%, 40%)
HSVhsv(222, 74%, 64%)
CMYKcmyk(74.1%, 51.2%, 0%, 36.5%)
CIE-LABlab(35.38, 16.67, -48.82)
CIE-LCHlch(35.38, 51.58, 288.85°)
OKLaboklab(44.88% -0.0157 -0.1403)
OKLCHoklch(44.88% 0.141 263.6)
XYZxyz(10.2701, 8.6917, 35.3118)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FA2 #A27D2A
analogous
#2A8BA2 #2A4FA2 #412AA2
triadic
#2A4FA2 #A22A4F #4FA22A
tetradic
#2A4FA2 #A22A8B #A27D2A #2AA241
square
#2A4FA2 #A22A8B #A27D2A #2AA241
split-complementary
#2A4FA2 #A2412A #8BA22A
monochromatic
#112041 #1D3771 #2A4FA2 #3D69CD #6D8ED9

Accessibility & contrast

On white

7.67
#2A4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A4FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FA2
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FA2#FFFFFF#000000##FFFFFF
##2A4FA21.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C59A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4fa2;
/* rgb */ color: rgb(42, 79, 162);
/* oklch */ color: oklch(44.9% 0.141 263.6);
Tailwind
colors: {
  custom: {
    50: '#747fbe',
    500: '#2a4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fa2;
$custom-light: #747fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fa2",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 221.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.44875,
    "c": 0.14119,
    "h": 263.6
  },
  "luminance": 0.08693
}

Semantic roles & 50–950 ramp

primary
#2A4FA2
secondary
#C0A568
accent
#B246E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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