#2A4773#2A4773

#2A4773 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.8% C 0.083 H 258.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2A4773
RGBrgb(42, 71, 115)
HSLhsl(216, 46%, 31%)
HSVhsv(216, 63%, 45%)
CMYKcmyk(63.5%, 38.3%, 0%, 54.9%)
CIE-LABlab(30.00, 4.09, -28.57)
CIE-LCHlch(30.00, 28.86, 278.15°)
OKLaboklab(39.76% -0.0165 -0.081)
OKLCHoklch(39.76% 0.083 258.5)
XYZxyz(6.3015, 6.2360, 17.0879)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4773 #73562A
analogous
#2A6B73 #2A4773 #312A73
triadic
#2A4773 #732A47 #47732A
tetradic
#2A4773 #732A6B #73562A #2A7331
square
#2A4773 #732A6B #73562A #2A7331
split-complementary
#2A4773 #73312A #6B732A
monochromatic
#091019 #1A2B46 #2A4773 #3A63A0 #5681C1

Accessibility & contrast

On white

9.34
#2A4773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A4773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4773
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4773#FFFFFF#000000##FFFFFF
##2A47731.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344A75
Deuteranopia (green-blind)
#2A4472
Tritanopia (blue-blind)
#005157
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4773;
/* rgb */ color: rgb(42, 71, 115);
/* oklch */ color: oklch(39.8% 0.083 258.5);
Tailwind
colors: {
  custom: {
    50: '#6b799b',
    500: '#2a4773',
    950: '#000000',
  },
}
SCSS
$custom: #2a4773;
$custom-light: #6b799b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4773",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 115
  },
  "hsl": {
    "h": 216.164,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39764,
    "c": 0.08264,
    "h": 258.5
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#2A4773
secondary
#A58554
accent
#A252D6
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4773

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

Preview Lab → · Contrast checker → · Palette generator →

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