#2A4479#2A4479

#2A4479 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.4% C 0.095 H 263.0°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2A4479
RGBrgb(42, 68, 121)
HSLhsl(220, 48%, 32%)
HSVhsv(220, 65%, 47%)
CMYKcmyk(65.3%, 43.8%, 0%, 52.5%)
CIE-LABlab(29.43, 8.36, -33.25)
CIE-LCHlch(29.43, 34.28, 284.12°)
OKLaboklab(39.44% -0.0116 -0.0947)
OKLCHoklch(39.44% 0.095 263)
XYZxyz(6.4720, 6.0064, 18.9037)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4479 #795F2A
analogous
#2A6C79 #2A4479 #382A79
triadic
#2A4479 #792A44 #44792A
tetradic
#2A4479 #792A6C #795F2A #2A7938
square
#2A4479 #792A6C #795F2A #2A7938
split-complementary
#2A4479 #79382A #6C792A
monochromatic
#0A111E #1A2A4C #2A4479 #3A5EA6 #587CC5

Accessibility & contrast

On white

9.54
#2A4479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4479
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4479#FFFFFF#000000##FFFFFF
##2A44791.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497B
Deuteranopia (green-blind)
#204278
Tritanopia (blue-blind)
#005058
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4479;
/* rgb */ color: rgb(42, 68, 121);
/* oklch */ color: oklch(39.4% 0.095 263.0);
Tailwind
colors: {
  custom: {
    50: '#6c77a0',
    500: '#2a4479',
    950: '#000000',
  },
}
SCSS
$custom: #2a4479;
$custom-light: #6c77a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4479",
  "rgb": {
    "r": 42,
    "g": 68,
    "b": 121
  },
  "hsl": {
    "h": 220.253,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39437,
    "c": 0.09543,
    "h": 263
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#2A4479
secondary
#AB8E54
accent
#AB50D8
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A4479

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

Preview Lab → · Contrast checker → · Palette generator →

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