#2A4897#2A4897

#2A4897 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.5% C 0.135 H 265.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2A4897
RGBrgb(42, 72, 151)
HSLhsl(223, 56%, 38%)
HSVhsv(223, 72%, 59%)
CMYKcmyk(72.2%, 52.3%, 0%, 40.8%)
CIE-LABlab(32.61, 17.13, -46.65)
CIE-LCHlch(32.61, 49.70, 290.17°)
OKLaboklab(42.52% -0.0108 -0.1341)
OKLCHoklch(42.52% 0.135 265.4)
XYZxyz(8.8562, 7.3604, 30.2261)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4897 #97792A
analogous
#2A7F97 #2A4897 #422A97
triadic
#2A4897 #972A48 #48972A
tetradic
#2A4897 #972A7F #97792A #2A9742
square
#2A4897 #972A7F #97792A #2A9742
split-complementary
#2A4897 #97422A #7F972A
monochromatic
#0F1A37 #1D3167 #2A4897 #375FC7 #6785D5

Accessibility & contrast

On white

8.49
#2A4897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A4897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4897
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4897#FFFFFF#000000##FFFFFF
##2A48971.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17529A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4897;
/* rgb */ color: rgb(42, 72, 151);
/* oklch */ color: oklch(42.5% 0.135 265.4);
Tailwind
colors: {
  custom: {
    50: '#727ab6',
    500: '#2a4897',
    950: '#000000',
  },
}
SCSS
$custom: #2a4897;
$custom-light: #727ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4897",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 223.486,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42519,
    "c": 0.13451,
    "h": 265.4
  },
  "luminance": 0.07361
}

Semantic roles & 50–950 ramp

primary
#2A4897
secondary
#BBA262
accent
#B648E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4897

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

Preview Lab → · Contrast checker → · Palette generator →

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