#2A4798#2A4798

#2A4798 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.137 H 265.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2A4798
RGBrgb(42, 71, 152)
HSLhsl(224, 57%, 38%)
HSVhsv(224, 72%, 60%)
CMYKcmyk(72.4%, 53.3%, 0%, 40.4%)
CIE-LABlab(32.40, 18.19, -47.60)
CIE-LCHlch(32.40, 50.96, 290.92°)
OKLaboklab(42.38% -0.0098 -0.1369)
OKLCHoklch(42.38% 0.137 265.9)
XYZxyz(8.8736, 7.2648, 30.6343)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4798 #987B2A
analogous
#2A7E98 #2A4798 #442A98
triadic
#2A4798 #982A47 #47982A
tetradic
#2A4798 #982A7E #987B2A #2A9844
square
#2A4798 #982A7E #987B2A #2A9844
split-complementary
#2A4798 #98442A #7E982A
monochromatic
#101A38 #1D3168 #2A4798 #375DC8 #6784D5

Accessibility & contrast

On white

8.56
#2A4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2A4798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4798
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4798#FFFFFF#000000##FFFFFF
##2A47981.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11529B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4798;
/* rgb */ color: rgb(42, 71, 152);
/* oklch */ color: oklch(42.4% 0.137 265.9);
Tailwind
colors: {
  custom: {
    50: '#7279b7',
    500: '#2a4798',
    950: '#000000',
  },
}
SCSS
$custom: #2a4798;
$custom-light: #7279b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4798",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 224.182,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42382,
    "c": 0.13723,
    "h": 265.9
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#2A4798
secondary
#BBA462
accent
#B848E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4798

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

Preview Lab → · Contrast checker → · Palette generator →

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