#2A4A91#2A4A91

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

Color values

HEX#2A4A91
RGBrgb(42, 74, 145)
HSLhsl(221, 55%, 37%)
HSVhsv(221, 71%, 57%)
CMYKcmyk(71%, 49%, 0%, 43.1%)
CIE-LABlab(32.77, 13.48, -42.74)
CIE-LCHlch(32.77, 44.81, 287.50°)
OKLaboklab(42.51% -0.0135 -0.1225)
OKLCHoklch(42.51% 0.123 263.7)
XYZxyz(8.5127, 7.4333, 27.7687)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A91 #91712A
analogous
#2A7E91 #2A4A91 #3E2A91
triadic
#2A4A91 #912A4A #4A912A
tetradic
#2A4A91 #912A7E #91712A #2A913E
square
#2A4A91 #912A7E #91712A #2A913E
split-complementary
#2A4A91 #913E2A #7E912A
monochromatic
#0F1A32 #1C3262 #2A4A91 #3862C0 #6386D2

Accessibility & contrast

On white

8.44
#2A4A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2A4A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A91
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A91#FFFFFF#000000##FFFFFF
##2A4A911.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245294
Deuteranopia (green-blind)
#0A4990
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a4a91;
/* rgb */ color: rgb(42, 74, 145);
/* oklch */ color: oklch(42.5% 0.123 263.7);
Tailwind
colors: {
  custom: {
    50: '#717cb2',
    500: '#2a4a91',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a91;
$custom-light: #717cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a91",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 145
  },
  "hsl": {
    "h": 221.359,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42508,
    "c": 0.12327,
    "h": 263.7
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#2A4A91
secondary
#B89C5F
accent
#B049DE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #2A4A91

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

Preview Lab → · Contrast checker → · Palette generator →

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