#2A477A#2A477A

#2A477A is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.2% C 0.093 H 260.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2A477A
RGBrgb(42, 71, 122)
HSLhsl(218, 49%, 32%)
HSVhsv(218, 66%, 48%)
CMYKcmyk(65.6%, 41.8%, 0%, 52.2%)
CIE-LABlab(30.41, 6.71, -32.32)
CIE-LCHlch(30.41, 33.01, 281.74°)
OKLaboklab(40.21% -0.0147 -0.0919)
OKLCHoklch(40.21% 0.093 260.9)
XYZxyz(6.7197, 6.4032, 19.2904)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A477A #7A5D2A
analogous
#2A6F7A #2A477A #352A7A
triadic
#2A477A #7A2A47 #477A2A
tetradic
#2A477A #7A2A6F #7A5D2A #2A7A35
square
#2A477A #7A2A6F #7A5D2A #2A7A35
split-complementary
#2A477A #7A352A #6F7A2A
monochromatic
#0B121F #1A2D4C #2A477A #3A61A8 #5980C6

Accessibility & contrast

On white

9.21
#2A477A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A477A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A477A
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A477A#FFFFFF#000000##FFFFFF
##2A477A1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7C
Deuteranopia (green-blind)
#254479
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a477a;
/* rgb */ color: rgb(42, 71, 122);
/* oklch */ color: oklch(40.2% 0.093 260.9);
Tailwind
colors: {
  custom: {
    50: '#6c79a1',
    500: '#2a477a',
    950: '#000000',
  },
}
SCSS
$custom: #2a477a;
$custom-light: #6c79a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a477a",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 122
  },
  "hsl": {
    "h": 218.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40213,
    "c": 0.09312,
    "h": 260.9
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#2A477A
secondary
#AB8C55
accent
#A74FD8
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090F
muted
#7A7B7E

Preview Lab

Preview with #2A477A

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

Preview Lab → · Contrast checker → · Palette generator →

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