#2A4797#2A4797

#2A4797 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.136 H 265.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2A4797
RGBrgb(42, 71, 151)
HSLhsl(224, 56%, 38%)
HSVhsv(224, 72%, 59%)
CMYKcmyk(72.2%, 53%, 0%, 40.8%)
CIE-LABlab(32.33, 17.81, -47.11)
CIE-LCHlch(32.33, 50.36, 290.71°)
OKLaboklab(42.3% -0.0099 -0.1354)
OKLCHoklch(42.3% 0.136 265.8)
XYZxyz(8.7920, 7.2322, 30.2048)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4797 #977A2A
analogous
#2A7D97 #2A4797 #442A97
triadic
#2A4797 #972A47 #47972A
tetradic
#2A4797 #972A7D #977A2A #2A9744
square
#2A4797 #972A7D #977A2A #2A9744
split-complementary
#2A4797 #97442A #7D972A
monochromatic
#0F1A37 #1D3067 #2A4797 #375EC7 #6784D5

Accessibility & contrast

On white

8.58
#2A4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2A4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4797
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4797#FFFFFF#000000##FFFFFF
##2A47971.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13519A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4797;
/* rgb */ color: rgb(42, 71, 151);
/* oklch */ color: oklch(42.3% 0.136 265.8);
Tailwind
colors: {
  custom: {
    50: '#7279b6',
    500: '#2a4797',
    950: '#000000',
  },
}
SCSS
$custom: #2a4797;
$custom-light: #7279b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4797",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 224.037,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42304,
    "c": 0.1358,
    "h": 265.8
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#2A4797
secondary
#BBA362
accent
#B748E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4797

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

Preview Lab → · Contrast checker → · Palette generator →

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