#2A4976#2A4976

#2A4976 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.4% C 0.085 H 257.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2A4976
RGBrgb(42, 73, 118)
HSLhsl(216, 48%, 31%)
HSVhsv(216, 64%, 46%)
CMYKcmyk(64.4%, 38.1%, 0%, 53.7%)
CIE-LABlab(30.79, 3.88, -29.20)
CIE-LCHlch(30.79, 29.45, 277.56°)
OKLaboklab(40.44% -0.018 -0.0828)
OKLCHoklch(40.44% 0.085 257.7)
XYZxyz(6.6062, 6.5647, 18.0550)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4976 #76572A
analogous
#2A6F76 #2A4976 #312A76
triadic
#2A4976 #762A49 #49762A
tetradic
#2A4976 #762A6F #76572A #2A7631
square
#2A4976 #762A6F #76572A #2A7631
split-complementary
#2A4976 #76312A #6F762A
monochromatic
#0A111C #1A2D49 #2A4976 #3A65A3 #5783C3

Accessibility & contrast

On white

9.08
#2A4976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2A4976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4976
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4976#FFFFFF#000000##FFFFFF
##2A49761.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364C78
Deuteranopia (green-blind)
#2B4575
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4976;
/* rgb */ color: rgb(42, 73, 118);
/* oklch */ color: oklch(40.4% 0.085 257.7);
Tailwind
colors: {
  custom: {
    50: '#6b7b9e',
    500: '#2a4976',
    950: '#000000',
  },
}
SCSS
$custom: #2a4976;
$custom-light: #6b7b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4976",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 118
  },
  "hsl": {
    "h": 215.526,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40438,
    "c": 0.08474,
    "h": 257.7
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#2A4976
secondary
#A88654
accent
#A051D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4976

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

Preview Lab → · Contrast checker → · Palette generator →

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