#2A4D97#2A4D97

#2A4D97 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.6% C 0.128 H 263.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2A4D97
RGBrgb(42, 77, 151)
HSLhsl(221, 56%, 38%)
HSVhsv(221, 72%, 59%)
CMYKcmyk(72.2%, 49%, 0%, 40.8%)
CIE-LABlab(34.05, 13.77, -44.33)
CIE-LCHlch(34.05, 46.42, 287.25°)
OKLaboklab(43.62% -0.0154 -0.1272)
OKLCHoklch(43.62% 0.128 263.1)
XYZxyz(9.1927, 8.0334, 30.3383)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D97 #97742A
analogous
#2A8397 #2A4D97 #3D2A97
triadic
#2A4D97 #972A4D #4D972A
tetradic
#2A4D97 #972A83 #97742A #2A973D
square
#2A4D97 #972A83 #97742A #2A973D
split-complementary
#2A4D97 #973D2A #83972A
monochromatic
#0F1C37 #1D3567 #2A4D97 #3765C7 #678AD5

Accessibility & contrast

On white

8.06
#2A4D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2A4D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D97
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D97#FFFFFF#000000##FFFFFF
##2A4D971.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25559A
Deuteranopia (green-blind)
#064B95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a4d97;
/* rgb */ color: rgb(42, 77, 151);
/* oklch */ color: oklch(43.6% 0.128 263.1);
Tailwind
colors: {
  custom: {
    50: '#727eb6',
    500: '#2a4d97',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d97;
$custom-light: #727eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d97",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 220.734,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43616,
    "c": 0.12809,
    "h": 263.1
  },
  "luminance": 0.08034
}

Semantic roles & 50–950 ramp

primary
#2A4D97
secondary
#BB9E62
accent
#AF48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4D97

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

Preview Lab → · Contrast checker → · Palette generator →

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