#2A4977#2A4977

#2A4977 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.5% C 0.086 H 258.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2A4977
RGBrgb(42, 73, 119)
HSLhsl(216, 48%, 32%)
HSVhsv(216, 65%, 47%)
CMYKcmyk(64.7%, 38.7%, 0%, 53.3%)
CIE-LABlab(30.85, 4.25, -29.73)
CIE-LCHlch(30.85, 30.04, 278.13°)
OKLaboklab(40.5% -0.0178 -0.0844)
OKLCHoklch(40.5% 0.086 258.1)
XYZxyz(6.6660, 6.5886, 18.3696)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4977 #77582A
analogous
#2A7077 #2A4977 #322A77
triadic
#2A4977 #772A49 #49772A
tetradic
#2A4977 #772A70 #77582A #2A7732
square
#2A4977 #772A70 #77582A #2A7732
split-complementary
#2A4977 #77322A #70772A
monochromatic
#0A121D #1A2D4A #2A4977 #3A65A4 #5883C4

Accessibility & contrast

On white

9.06
#2A4977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A4977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4977
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4977#FFFFFF#000000##FFFFFF
##2A49771.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354D79
Deuteranopia (green-blind)
#2B4576
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4977;
/* rgb */ color: rgb(42, 73, 119);
/* oklch */ color: oklch(40.5% 0.086 258.1);
Tailwind
colors: {
  custom: {
    50: '#6b7b9e',
    500: '#2a4977',
    950: '#000000',
  },
}
SCSS
$custom: #2a4977;
$custom-light: #6b7b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4977",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 119
  },
  "hsl": {
    "h": 215.844,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40501,
    "c": 0.08622,
    "h": 258.1
  },
  "luminance": 0.06589
}

Semantic roles & 50–950 ramp

primary
#2A4977
secondary
#A98754
accent
#A150D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4977

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

Preview Lab → · Contrast checker → · Palette generator →

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