#2A477D#2A477D

#2A477D is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.098 H 261.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2A477D
RGBrgb(42, 71, 125)
HSLhsl(219, 50%, 33%)
HSVhsv(219, 66%, 49%)
CMYKcmyk(66.4%, 43.2%, 0%, 51%)
CIE-LABlab(30.59, 7.85, -33.90)
CIE-LCHlch(30.59, 34.80, 283.04°)
OKLaboklab(40.41% -0.014 -0.0966)
OKLCHoklch(40.41% 0.098 261.7)
XYZxyz(6.9085, 6.4787, 20.2845)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A477D #7D602A
analogous
#2A717D #2A477D #362A7D
triadic
#2A477D #7D2A47 #477D2A
tetradic
#2A477D #7D2A71 #7D602A #2A7D36
square
#2A477D #7D2A71 #7D602A #2A7D36
split-complementary
#2A477D #7D362A #717D2A
monochromatic
#0B1321 #1B2D4F #2A477D #3961AB #5A80C8

Accessibility & contrast

On white

9.15
#2A477D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A477D
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A477D#FFFFFF#000000##FFFFFF
##2A477D1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C7F
Deuteranopia (green-blind)
#22447C
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a477d;
/* rgb */ color: rgb(42, 71, 125);
/* oklch */ color: oklch(40.4% 0.098 261.7);
Tailwind
colors: {
  custom: {
    50: '#6d79a3',
    500: '#2a477d',
    950: '#000000',
  },
}
SCSS
$custom: #2a477d;
$custom-light: #6d79a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a477d",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 125
  },
  "hsl": {
    "h": 219.036,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.09761,
    "h": 261.7
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#2A477D
secondary
#AD8F56
accent
#A94FD9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #2A477D

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

Preview Lab → · Contrast checker → · Palette generator →

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