#2A3797#2A3797

#2A3797 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.156 H 271.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2A3797
RGBrgb(42, 55, 151)
HSLhsl(233, 56%, 38%)
HSVhsv(233, 72%, 59%)
CMYKcmyk(72.2%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.00, 28.59, -54.14)
CIE-LCHlch(28.00, 61.23, 297.83°)
OKLaboklab(39.07% 0.0032 -0.1563)
OKLCHoklch(39.07% 0.156 271.2)
XYZxyz(7.9051, 5.4582, 29.9091)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3797 #978A2A
analogous
#2A6D97 #2A3797 #532A97
triadic
#2A3797 #972A37 #37972A
tetradic
#2A3797 #972A6D #978A2A #2A9753
square
#2A3797 #972A6D #978A2A #2A9753
split-complementary
#2A3797 #97532A #6D972A
monochromatic
#0F1437 #1D2667 #2A3797 #3748C7 #6774D5

Accessibility & contrast

On white

10.04
#2A3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3797
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3797#FFFFFF#000000##FFFFFF
##2A37971.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3797;
/* rgb */ color: rgb(42, 55, 151);
/* oklch */ color: oklch(39.1% 0.156 271.2);
Tailwind
colors: {
  custom: {
    50: '#736db6',
    500: '#2a3797',
    950: '#000000',
  },
}
SCSS
$custom: #2a3797;
$custom-light: #736db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3797",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 232.844,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39066,
    "c": 0.15636,
    "h": 271.2
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#2A3797
secondary
#BBB062
accent
#CE48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3797

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

Preview Lab → · Contrast checker → · Palette generator →

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