#2A477E#2A477E

#2A477E is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.099 H 262.0°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#2A477E
RGBrgb(42, 71, 126)
HSLhsl(219, 50%, 33%)
HSVhsv(219, 67%, 49%)
CMYKcmyk(66.7%, 43.7%, 0%, 50.6%)
CIE-LABlab(30.65, 8.23, -34.42)
CIE-LCHlch(30.65, 35.39, 283.44°)
OKLaboklab(40.48% -0.0138 -0.0981)
OKLCHoklch(40.48% 0.099 262)
XYZxyz(6.9727, 6.5044, 20.6226)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A477E #7E612A
analogous
#2A717E #2A477E #372A7E
triadic
#2A477E #7E2A47 #477E2A
tetradic
#2A477E #7E2A71 #7E612A #2A7E37
square
#2A477E #7E2A71 #7E612A #2A7E37
split-complementary
#2A477E #7E372A #717E2A
monochromatic
#0B1322 #1B2D50 #2A477E #3961AC #5A80C8

Accessibility & contrast

On white

9.13
#2A477E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A477E
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A477E#FFFFFF#000000##FFFFFF
##2A477E1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C80
Deuteranopia (green-blind)
#21457D
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a477e;
/* rgb */ color: rgb(42, 71, 126);
/* oklch */ color: oklch(40.5% 0.099 262.0);
Tailwind
colors: {
  custom: {
    50: '#6d79a4',
    500: '#2a477e',
    950: '#000000',
  },
}
SCSS
$custom: #2a477e;
$custom-light: #6d79a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a477e",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 219.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4048,
    "c": 0.09911,
    "h": 262
  },
  "luminance": 0.06505
}

Semantic roles & 50–950 ramp

primary
#2A477E
secondary
#AE8F56
accent
#A94EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #2A477E

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

Preview Lab → · Contrast checker → · Palette generator →

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