#2A4877#2A4877

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

Color values

HEX#2A4877
RGBrgb(42, 72, 119)
HSLhsl(217, 48%, 32%)
HSVhsv(217, 65%, 47%)
CMYKcmyk(64.7%, 39.5%, 0%, 53.3%)
CIE-LABlab(30.54, 4.92, -30.23)
CIE-LCHlch(30.54, 30.62, 279.24°)
OKLaboklab(40.26% -0.0166 -0.0858)
OKLCHoklch(40.26% 0.087 259.1)
XYZxyz(6.6008, 6.4583, 18.3479)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4877 #77592A
analogous
#2A6F77 #2A4877 #332A77
triadic
#2A4877 #772A48 #48772A
tetradic
#2A4877 #772A6F #77592A #2A7733
square
#2A4877 #772A6F #77592A #2A7733
split-complementary
#2A4877 #77332A #6F772A
monochromatic
#0A111D #1A2D4A #2A4877 #3A63A4 #5882C4

Accessibility & contrast

On white

9.16
#2A4877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A4877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4877
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4877#FFFFFF#000000##FFFFFF
##2A48771.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344C79
Deuteranopia (green-blind)
#294576
Tritanopia (blue-blind)
#005359
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4877;
/* rgb */ color: rgb(42, 72, 119);
/* oklch */ color: oklch(40.3% 0.087 259.1);
Tailwind
colors: {
  custom: {
    50: '#6b7a9e',
    500: '#2a4877',
    950: '#000000',
  },
}
SCSS
$custom: #2a4877;
$custom-light: #6b7a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4877",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 119
  },
  "hsl": {
    "h": 216.623,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40259,
    "c": 0.08741,
    "h": 259.1
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#2A4877
secondary
#A98854
accent
#A350D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4877

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

Preview Lab → · Contrast checker → · Palette generator →

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