#2A4872#2A4872

#2A4872 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.9% C 0.080 H 257.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2A4872
RGBrgb(42, 72, 114)
HSLhsl(215, 46%, 31%)
HSVhsv(215, 63%, 45%)
CMYKcmyk(63.2%, 36.8%, 0%, 55.3%)
CIE-LABlab(30.26, 3.05, -27.53)
CIE-LCHlch(30.26, 27.70, 276.33°)
OKLaboklab(39.95% -0.0179 -0.0779)
OKLCHoklch(39.95% 0.08 257)
XYZxyz(6.3084, 6.3413, 16.8079)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4872 #72542A
analogous
#2A6C72 #2A4872 #302A72
triadic
#2A4872 #722A48 #48722A
tetradic
#2A4872 #722A6C #72542A #2A7230
square
#2A4872 #722A6C #72542A #2A7230
split-complementary
#2A4872 #72302A #6C722A
monochromatic
#091019 #1A2C45 #2A4872 #3A649F #5682C1

Accessibility & contrast

On white

9.26
#2A4872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4872
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4872#FFFFFF#000000##FFFFFF
##2A48721.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B74
Deuteranopia (green-blind)
#2D4471
Tritanopia (blue-blind)
#005257
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4872;
/* rgb */ color: rgb(42, 72, 114);
/* oklch */ color: oklch(39.9% 0.080 257.0);
Tailwind
colors: {
  custom: {
    50: '#6b7a9b',
    500: '#2a4872',
    950: '#000000',
  },
}
SCSS
$custom: #2a4872;
$custom-light: #6b7a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4872",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 215,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39946,
    "c": 0.07999,
    "h": 257
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#2A4872
secondary
#A48354
accent
#9F52D6
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4872

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

Preview Lab → · Contrast checker → · Palette generator →

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