#2A477C#2A477C

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

Color values

HEX#2A477C
RGBrgb(42, 71, 124)
HSLhsl(219, 49%, 33%)
HSVhsv(219, 66%, 49%)
CMYKcmyk(66.1%, 42.7%, 0%, 51.4%)
CIE-LABlab(30.53, 7.47, -33.37)
CIE-LCHlch(30.53, 34.20, 282.62°)
OKLaboklab(40.35% -0.0143 -0.095)
OKLCHoklch(40.35% 0.096 261.5)
XYZxyz(6.8449, 6.4533, 19.9498)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A477C #7C5F2A
analogous
#2A707C #2A477C #362A7C
triadic
#2A477C #7C2A47 #477C2A
tetradic
#2A477C #7C2A70 #7C5F2A #2A7C36
square
#2A477C #7C2A70 #7C5F2A #2A7C36
split-complementary
#2A477C #7C362A #707C2A
monochromatic
#0B1321 #1B2D4E #2A477C #3961AA #5980C7

Accessibility & contrast

On white

9.17
#2A477C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A477C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A477C#FFFFFF#000000##FFFFFF
##2A477C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4C7E
Deuteranopia (green-blind)
#23447B
Tritanopia (blue-blind)
#00535B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a477c;
/* rgb */ color: rgb(42, 71, 124);
/* oklch */ color: oklch(40.3% 0.096 261.5);
Tailwind
colors: {
  custom: {
    50: '#6c79a2',
    500: '#2a477c',
    950: '#000000',
  },
}
SCSS
$custom: #2a477c;
$custom-light: #6c79a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a477c",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 124
  },
  "hsl": {
    "h": 218.78,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40346,
    "c": 0.09611,
    "h": 261.5
  },
  "luminance": 0.06454
}

Semantic roles & 50–950 ramp

primary
#2A477C
secondary
#AD8E55
accent
#A84FD9
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #2A477C

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

Preview Lab → · Contrast checker → · Palette generator →

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