#372887#372887

#372887 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.150 H 283.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#372887
RGBrgb(55, 40, 135)
HSLhsl(249, 54%, 34%)
HSVhsv(249, 70%, 53%)
CMYKcmyk(59.3%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.93, 34.50, -50.87)
CIE-LCHlch(23.93, 61.46, 304.14°)
OKLaboklab(35.91% 0.0338 -0.1464)
OKLCHoklch(35.91% 0.15 283)
XYZxyz(6.7062, 4.0786, 23.3509)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#372887 #788728
analogous
#284987 #372887 #672887
triadic
#372887 #873728 #288737
tetradic
#372887 #872849 #788728 #288767
square
#372887 #872849 #788728 #288767
split-complementary
#372887 #876728 #498728
monochromatic
#110C29 #241A58 #372887 #4A36B6 #6D5BCE

Accessibility & contrast

On white

11.57
#372887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#372887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #372887
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##372887#FFFFFF#000000##FFFFFF
##3728871.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#0A4154
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #372887;
/* rgb */ color: rgb(55, 40, 135);
/* oklch */ color: oklch(35.9% 0.150 283.0);
Tailwind
colors: {
  custom: {
    50: '#7763ab',
    500: '#372887',
    950: '#000000',
  },
}
SCSS
$custom: #372887;
$custom-light: #7763ab;
$custom-dark: #000000;
JSON
{
  "hex": "#372887",
  "rgb": {
    "r": 55,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 249.474,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35905,
    "c": 0.15025,
    "h": 283
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#372887
secondary
#A5B457
accent
#DE4AC6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #372887

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

Preview Lab → · Contrast checker → · Palette generator →

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