#2A4874#2A4874

#2A4874 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.083 H 257.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2A4874
RGBrgb(42, 72, 116)
HSLhsl(216, 47%, 31%)
HSVhsv(216, 64%, 45%)
CMYKcmyk(63.8%, 37.9%, 0%, 54.5%)
CIE-LABlab(30.37, 3.80, -28.61)
CIE-LCHlch(30.37, 28.87, 277.56°)
OKLaboklab(40.07% -0.0174 -0.0811)
OKLCHoklch(40.07% 0.083 257.9)
XYZxyz(6.4235, 6.3873, 17.4140)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4874 #74562A
analogous
#2A6D74 #2A4874 #312A74
triadic
#2A4874 #742A48 #48742A
tetradic
#2A4874 #742A6D #74562A #2A7431
square
#2A4874 #742A6D #74562A #2A7431
split-complementary
#2A4874 #74312A #6D742A
monochromatic
#09101A #1A2C47 #2A4874 #3A64A1 #5682C2

Accessibility & contrast

On white

9.22
#2A4874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A4874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4874
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4874#FFFFFF#000000##FFFFFF
##2A48741.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354B76
Deuteranopia (green-blind)
#2B4473
Tritanopia (blue-blind)
#005258
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4874;
/* rgb */ color: rgb(42, 72, 116);
/* oklch */ color: oklch(40.1% 0.083 257.9);
Tailwind
colors: {
  custom: {
    50: '#6b7a9c',
    500: '#2a4874',
    950: '#000000',
  },
}
SCSS
$custom: #2a4874;
$custom-light: #6b7a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4874",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 116
  },
  "hsl": {
    "h": 215.676,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.08295,
    "h": 257.9
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#2A4874
secondary
#A68554
accent
#A051D6
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4874

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

Preview Lab → · Contrast checker → · Palette generator →

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