#2A4778#2A4778

#2A4778 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.090 H 260.3°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2A4778
RGBrgb(42, 71, 120)
HSLhsl(218, 48%, 32%)
HSVhsv(218, 65%, 47%)
CMYKcmyk(65%, 40.8%, 0%, 52.9%)
CIE-LABlab(30.29, 5.96, -31.25)
CIE-LCHlch(30.29, 31.82, 280.80°)
OKLaboklab(40.08% -0.0152 -0.0888)
OKLCHoklch(40.08% 0.09 260.3)
XYZxyz(6.5971, 6.3542, 18.6445)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4778 #785B2A
analogous
#2A6E78 #2A4778 #342A78
triadic
#2A4778 #782A47 #47782A
tetradic
#2A4778 #782A6E #785B2A #2A7834
square
#2A4778 #782A6E #785B2A #2A7834
split-complementary
#2A4778 #78342A #6E782A
monochromatic
#0A111D #1A2C4B #2A4778 #3A62A5 #5880C5

Accessibility & contrast

On white

9.25
#2A4778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A4778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4778
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4778#FFFFFF#000000##FFFFFF
##2A47781.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324B7A
Deuteranopia (green-blind)
#274477
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4778;
/* rgb */ color: rgb(42, 71, 120);
/* oklch */ color: oklch(40.1% 0.090 260.3);
Tailwind
colors: {
  custom: {
    50: '#6c799f',
    500: '#2a4778',
    950: '#000000',
  },
}
SCSS
$custom: #2a4778;
$custom-light: #6c799f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4778",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 120
  },
  "hsl": {
    "h": 217.692,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40083,
    "c": 0.09012,
    "h": 260.3
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#2A4778
secondary
#AA8A54
accent
#A550D8
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4778

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

Preview Lab → · Contrast checker → · Palette generator →

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