#2A4878#2A4878

#2A4878 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.3% C 0.089 H 259.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2A4878
RGBrgb(42, 72, 120)
HSLhsl(217, 48%, 32%)
HSVhsv(217, 65%, 47%)
CMYKcmyk(65%, 40%, 0%, 52.9%)
CIE-LABlab(30.60, 5.29, -30.76)
CIE-LCHlch(30.60, 31.21, 279.76°)
OKLaboklab(40.32% -0.0163 -0.0874)
OKLCHoklch(40.32% 0.089 259.4)
XYZxyz(6.6612, 6.4824, 18.6659)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4878 #785A2A
analogous
#2A6F78 #2A4878 #332A78
triadic
#2A4878 #782A48 #48782A
tetradic
#2A4878 #782A6F #785A2A #2A7833
square
#2A4878 #782A6F #785A2A #2A7833
split-complementary
#2A4878 #78332A #6F782A
monochromatic
#0A121D #1A2D4B #2A4878 #3A63A5 #5882C5

Accessibility & contrast

On white

9.14
#2A4878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2A4878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4878
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4878#FFFFFF#000000##FFFFFF
##2A48781.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334C7A
Deuteranopia (green-blind)
#284577
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4878;
/* rgb */ color: rgb(42, 72, 120);
/* oklch */ color: oklch(40.3% 0.089 259.4);
Tailwind
colors: {
  custom: {
    50: '#6c7a9f',
    500: '#2a4878',
    950: '#000000',
  },
}
SCSS
$custom: #2a4878;
$custom-light: #6c7a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4878",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 120
  },
  "hsl": {
    "h": 216.923,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40323,
    "c": 0.0889,
    "h": 259.4
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#2A4878
secondary
#AA8954
accent
#A450D8
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4878

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

Preview Lab → · Contrast checker → · Palette generator →

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