#2A4A97#2A4A97

#2A4A97 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.0% C 0.132 H 264.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2A4A97
RGBrgb(42, 74, 151)
HSLhsl(222, 56%, 38%)
HSVhsv(222, 72%, 59%)
CMYKcmyk(72.2%, 51%, 0%, 40.8%)
CIE-LABlab(33.19, 15.79, -45.73)
CIE-LCHlch(33.19, 48.38, 289.04°)
OKLaboklab(42.95% -0.0126 -0.1313)
OKLCHoklch(42.95% 0.132 264.5)
XYZxyz(8.9876, 7.6232, 30.2699)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A97 #97772A
analogous
#2A8197 #2A4A97 #402A97
triadic
#2A4A97 #972A4A #4A972A
tetradic
#2A4A97 #972A81 #97772A #2A9740
square
#2A4A97 #972A81 #97772A #2A9740
split-complementary
#2A4A97 #97402A #81972A
monochromatic
#0F1B37 #1D3367 #2A4A97 #3761C7 #6787D5

Accessibility & contrast

On white

8.32
#2A4A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2A4A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A97
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A97#FFFFFF#000000##FFFFFF
##2A4A971.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4a97;
/* rgb */ color: rgb(42, 74, 151);
/* oklch */ color: oklch(43.0% 0.132 264.5);
Tailwind
colors: {
  custom: {
    50: '#727cb6',
    500: '#2a4a97',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a97;
$custom-light: #727cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a97",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 222.385,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.13193,
    "h": 264.5
  },
  "luminance": 0.07624
}

Semantic roles & 50–950 ramp

primary
#2A4A97
secondary
#BBA162
accent
#B348E0
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4A97

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

Preview Lab → · Contrast checker → · Palette generator →

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