#2A4997#2A4997

#2A4997 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.7% C 0.133 H 265.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2A4997
RGBrgb(42, 73, 151)
HSLhsl(223, 56%, 38%)
HSVhsv(223, 72%, 59%)
CMYKcmyk(72.2%, 51.7%, 0%, 40.8%)
CIE-LABlab(32.90, 16.46, -46.19)
CIE-LCHlch(32.90, 49.04, 289.61°)
OKLaboklab(42.74% -0.0117 -0.1327)
OKLCHoklch(42.74% 0.133 265)
XYZxyz(8.9213, 7.4908, 30.2479)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4997 #97782A
analogous
#2A7F97 #2A4997 #412A97
triadic
#2A4997 #972A49 #49972A
tetradic
#2A4997 #972A7F #97782A #2A9741
square
#2A4997 #972A7F #97782A #2A9741
split-complementary
#2A4997 #97412A #7F972A
monochromatic
#0F1B37 #1D3267 #2A4997 #3760C7 #6786D5

Accessibility & contrast

On white

8.41
#2A4997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A4997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4997
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4997#FFFFFF#000000##FFFFFF
##2A49971.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A539A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4997;
/* rgb */ color: rgb(42, 73, 151);
/* oklch */ color: oklch(42.7% 0.133 265.0);
Tailwind
colors: {
  custom: {
    50: '#727bb6',
    500: '#2a4997',
    950: '#000000',
  },
}
SCSS
$custom: #2a4997;
$custom-light: #727bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4997",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 151
  },
  "hsl": {
    "h": 222.936,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42736,
    "c": 0.13322,
    "h": 265
  },
  "luminance": 0.07492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4997

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

Preview Lab → · Contrast checker → · Palette generator →

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