#2A4876#2A4876

#2A4876 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.2% C 0.086 H 258.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2A4876
RGBrgb(42, 72, 118)
HSLhsl(216, 48%, 31%)
HSVhsv(216, 64%, 46%)
CMYKcmyk(64.4%, 39%, 0%, 53.7%)
CIE-LABlab(30.48, 4.54, -29.69)
CIE-LCHlch(30.48, 30.04, 278.70°)
OKLaboklab(40.2% -0.0169 -0.0842)
OKLCHoklch(40.2% 0.086 258.7)
XYZxyz(6.5411, 6.4344, 18.0333)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4876 #76582A
analogous
#2A6E76 #2A4876 #322A76
triadic
#2A4876 #762A48 #48762A
tetradic
#2A4876 #762A6E #76582A #2A7632
square
#2A4876 #762A6E #76582A #2A7632
split-complementary
#2A4876 #76322A #6E762A
monochromatic
#0A111C #1A2C49 #2A4876 #3A64A3 #5782C3

Accessibility & contrast

On white

9.18
#2A4876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A4876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4876
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4876#FFFFFF#000000##FFFFFF
##2A48761.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344C78
Deuteranopia (green-blind)
#2A4475
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4876;
/* rgb */ color: rgb(42, 72, 118);
/* oklch */ color: oklch(40.2% 0.086 258.7);
Tailwind
colors: {
  custom: {
    50: '#6b7a9e',
    500: '#2a4876',
    950: '#000000',
  },
}
SCSS
$custom: #2a4876;
$custom-light: #6b7a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4876",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 118
  },
  "hsl": {
    "h": 216.316,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40195,
    "c": 0.08592,
    "h": 258.7
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

primary
#2A4876
secondary
#A88754
accent
#A251D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4876

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

Preview Lab → · Contrast checker → · Palette generator →

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