#2A4F97#2A4F97

#2A4F97 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.126 H 262.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2A4F97
RGBrgb(42, 79, 151)
HSLhsl(220, 56%, 38%)
HSVhsv(220, 72%, 59%)
CMYKcmyk(72.2%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.64, 12.43, -43.39)
CIE-LCHlch(34.64, 45.14, 285.98°)
OKLaboklab(44.06% -0.0172 -0.1244)
OKLCHoklch(44.06% 0.126 262.1)
XYZxyz(9.3348, 8.3176, 30.3857)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F97 #97722A
analogous
#2A8597 #2A4F97 #3B2A97
triadic
#2A4F97 #972A4F #4F972A
tetradic
#2A4F97 #972A85 #97722A #2A973B
square
#2A4F97 #972A85 #97722A #2A973B
split-complementary
#2A4F97 #973B2A #85972A
monochromatic
#0F1D37 #1D3667 #2A4F97 #3768C7 #678CD5

Accessibility & contrast

On white

7.88
#2A4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2A4F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F97
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F97#FFFFFF#000000##FFFFFF
##2A4F971.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#104D96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4f97;
/* rgb */ color: rgb(42, 79, 151);
/* oklch */ color: oklch(44.1% 0.126 262.1);
Tailwind
colors: {
  custom: {
    50: '#727fb6',
    500: '#2a4f97',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f97;
$custom-light: #727fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f97",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 219.633,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44063,
    "c": 0.12556,
    "h": 262.1
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#2A4F97
secondary
#BB9D62
accent
#AC48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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