#2A4784#2A4784

#2A4784 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.108 H 263.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2A4784
RGBrgb(42, 71, 132)
HSLhsl(221, 52%, 34%)
HSVhsv(221, 68%, 52%)
CMYKcmyk(68.2%, 46.2%, 0%, 48.2%)
CIE-LABlab(31.03, 10.51, -37.55)
CIE-LCHlch(31.03, 38.99, 285.64°)
OKLaboklab(40.89% -0.0126 -0.1073)
OKLCHoklch(40.89% 0.108 263.3)
XYZxyz(7.3715, 6.6640, 22.7231)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4784 #84672A
analogous
#2A7484 #2A4784 #3A2A84
triadic
#2A4784 #842A47 #47842A
tetradic
#2A4784 #842A74 #84672A #2A843A
square
#2A4784 #842A74 #84672A #2A843A
split-complementary
#2A4784 #843A2A #74842A
monochromatic
#0C1527 #1B2E56 #2A4784 #3960B2 #5D81CB

Accessibility & contrast

On white

9.00
#2A4784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A4784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4784
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4784#FFFFFF#000000##FFFFFF
##2A47841.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294D86
Deuteranopia (green-blind)
#1A4583
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a4784;
/* rgb */ color: rgb(42, 71, 132);
/* oklch */ color: oklch(40.9% 0.108 263.3);
Tailwind
colors: {
  custom: {
    50: '#6e79a8',
    500: '#2a4784',
    950: '#000000',
  },
}
SCSS
$custom: #2a4784;
$custom-light: #6e79a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4784",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 132
  },
  "hsl": {
    "h": 220.667,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40894,
    "c": 0.10804,
    "h": 263.3
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#2A4784
secondary
#B19559
accent
#AD4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4784

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

Preview Lab → · Contrast checker → · Palette generator →

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