#2A477F#2A477F

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

Color values

HEX#2A477F
RGBrgb(42, 71, 127)
HSLhsl(220, 50%, 33%)
HSVhsv(220, 67%, 50%)
CMYKcmyk(66.9%, 44.1%, 0%, 50.2%)
CIE-LABlab(30.71, 8.61, -34.95)
CIE-LCHlch(30.71, 35.99, 283.84°)
OKLaboklab(40.55% -0.0136 -0.0997)
OKLCHoklch(40.55% 0.101 262.2)
XYZxyz(7.0375, 6.5304, 20.9642)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A477F #7F622A
analogous
#2A717F #2A477F #372A7F
triadic
#2A477F #7F2A47 #477F2A
tetradic
#2A477F #7F2A71 #7F622A #2A7F37
square
#2A477F #7F2A71 #7F622A #2A7F37
split-complementary
#2A477F #7F372A #717F2A
monochromatic
#0C1423 #1B2D51 #2A477F #3961AD #5B80C9

Accessibility & contrast

On white

9.11
#2A477F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2A477F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A477F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A477F#FFFFFF#000000##FFFFFF
##2A477F1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4D81
Deuteranopia (green-blind)
#20457E
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a477f;
/* rgb */ color: rgb(42, 71, 127);
/* oklch */ color: oklch(40.5% 0.101 262.2);
Tailwind
colors: {
  custom: {
    50: '#6d79a4',
    500: '#2a477f',
    950: '#000000',
  },
}
SCSS
$custom: #2a477f;
$custom-light: #6d79a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a477f",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 127
  },
  "hsl": {
    "h": 219.529,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40548,
    "c": 0.1006,
    "h": 262.2
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

primary
#2A477F
secondary
#AE9057
accent
#AA4EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A477F

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

Preview Lab → · Contrast checker → · Palette generator →

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