#2A477B#2A477B

#2A477B is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.095 H 261.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#2A477B
RGBrgb(42, 71, 123)
HSLhsl(219, 49%, 32%)
HSVhsv(219, 66%, 48%)
CMYKcmyk(65.9%, 42.3%, 0%, 51.8%)
CIE-LABlab(30.47, 7.09, -32.84)
CIE-LCHlch(30.47, 33.60, 282.19°)
OKLaboklab(40.28% -0.0145 -0.0935)
OKLCHoklch(40.28% 0.095 261.2)
XYZxyz(6.7820, 6.4281, 19.6184)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A477B #7B5E2A
analogous
#2A6F7B #2A477B #362A7B
triadic
#2A477B #7B2A47 #477B2A
tetradic
#2A477B #7B2A6F #7B5E2A #2A7B36
square
#2A477B #7B2A6F #7B5E2A #2A7B36
split-complementary
#2A477B #7B362A #6F7B2A
monochromatic
#0B1220 #1A2D4D #2A477B #3A61A9 #5980C6

Accessibility & contrast

On white

9.19
#2A477B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A477B
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A477B#FFFFFF#000000##FFFFFF
##2A477B1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7D
Deuteranopia (green-blind)
#24447A
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a477b;
/* rgb */ color: rgb(42, 71, 123);
/* oklch */ color: oklch(40.3% 0.095 261.2);
Tailwind
colors: {
  custom: {
    50: '#6c79a1',
    500: '#2a477b',
    950: '#000000',
  },
}
SCSS
$custom: #2a477b;
$custom-light: #6c79a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a477b",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 123
  },
  "hsl": {
    "h": 218.519,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40279,
    "c": 0.09462,
    "h": 261.2
  },
  "luminance": 0.06429
}

Semantic roles & 50–950 ramp

primary
#2A477B
secondary
#AC8D55
accent
#A74FD9
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090F
muted
#7A7B7E

Preview Lab

Preview with #2A477B

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

Preview Lab → · Contrast checker → · Palette generator →

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