#2A4873#2A4873

#2A4873 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.0% C 0.081 H 257.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2A4873
RGBrgb(42, 72, 115)
HSLhsl(215, 46%, 31%)
HSVhsv(215, 63%, 45%)
CMYKcmyk(63.5%, 37.4%, 0%, 54.9%)
CIE-LABlab(30.31, 3.42, -28.07)
CIE-LCHlch(30.31, 28.28, 276.95°)
OKLaboklab(40.01% -0.0177 -0.0795)
OKLCHoklch(40.01% 0.081 257.5)
XYZxyz(6.3656, 6.3642, 17.1093)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4873 #73552A
analogous
#2A6C73 #2A4873 #302A73
triadic
#2A4873 #732A48 #48732A
tetradic
#2A4873 #732A6C #73552A #2A7330
square
#2A4873 #732A6C #73552A #2A7330
split-complementary
#2A4873 #73302A #6C732A
monochromatic
#091019 #1A2C46 #2A4873 #3A64A0 #5682C1

Accessibility & contrast

On white

9.24
#2A4873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2A4873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4873
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4873#FFFFFF#000000##FFFFFF
##2A48731.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B75
Deuteranopia (green-blind)
#2C4472
Tritanopia (blue-blind)
#005258
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4873;
/* rgb */ color: rgb(42, 72, 115);
/* oklch */ color: oklch(40.0% 0.081 257.5);
Tailwind
colors: {
  custom: {
    50: '#6b7a9b',
    500: '#2a4873',
    950: '#000000',
  },
}
SCSS
$custom: #2a4873;
$custom-light: #6b7a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4873",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 115
  },
  "hsl": {
    "h": 215.342,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40008,
    "c": 0.08147,
    "h": 257.5
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#2A4873
secondary
#A58454
accent
#A052D6
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4873

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

Preview Lab → · Contrast checker → · Palette generator →

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