#373797#373797

#373797 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.153 H 276.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#373797
RGBrgb(55, 55, 151)
HSLhsl(240, 47%, 40%)
HSVhsv(240, 64%, 59%)
CMYKcmyk(63.6%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.85, 30.52, -52.73)
CIE-LCHlch(28.85, 60.93, 300.06°)
OKLaboklab(39.91% 0.0185 -0.1518)
OKLCHoklch(39.91% 0.153 276.9)
XYZxyz(8.5258, 5.7783, 29.9382)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#373797 #979737
analogous
#376797 #373797 #673797
triadic
#373797 #973737 #379737
tetradic
#373797 #973767 #979737 #379767
square
#373797 #973767 #979737 #379767
split-complementary
#373797 #976737 #679737
monochromatic
#16163D #27276A #373797 #4D4DBE #7A7ACF

Accessibility & contrast

On white

9.74
#373797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#373797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #373797
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##373797#FFFFFF#000000##FFFFFF
##3737971.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #373797;
/* rgb */ color: rgb(55, 55, 151);
/* oklch */ color: oklch(39.9% 0.153 276.9);
Tailwind
colors: {
  custom: {
    50: '#796eb6',
    500: '#373797',
    950: '#000000',
  },
}
SCSS
$custom: #373797;
$custom-light: #796eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#373797",
  "rgb": {
    "r": 55,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39909,
    "c": 0.15296,
    "h": 276.9
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#373797
secondary
#B8B872
accent
#D652D6
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #373797

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

Preview Lab → · Contrast checker → · Palette generator →

#373797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva