#31376A#31376A

#31376A is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.9% C 0.088 H 276.0°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#31376A
RGBrgb(49, 55, 106)
HSLhsl(234, 37%, 30%)
HSVhsv(234, 54%, 42%)
CMYKcmyk(53.8%, 48.1%, 0%, 58.4%)
CIE-LABlab(25.03, 13.36, -30.71)
CIE-LCHlch(25.03, 33.49, 293.51°)
OKLaboklab(35.88% 0.0092 -0.0873)
OKLCHoklch(35.88% 0.088 276)
XYZxyz(5.2335, 4.4256, 14.2113)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31376A #6A6431
analogous
#31536A #31376A #47316A
triadic
#31376A #6A3137 #376A31
tetradic
#31376A #6A3153 #6A6431 #316A47
square
#31376A #6A3153 #6A6431 #316A47
split-complementary
#31376A #6A4731 #536A31
monochromatic
#0A0C16 #1E2140 #31376A #444D94 #6069B5

Accessibility & contrast

On white

11.14
#31376A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#31376A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31376A
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31376A#FFFFFF#000000##FFFFFF
##31376A1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213E6C
Deuteranopia (green-blind)
#1C3969
Tritanopia (blue-blind)
#19424B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31376a;
/* rgb */ color: rgb(49, 55, 106);
/* oklch */ color: oklch(35.9% 0.088 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d6d95',
    500: '#31376a',
    950: '#000000',
  },
}
SCSS
$custom: #31376a;
$custom-light: #6d6d95;
$custom-dark: #000000;
JSON
{
  "hex": "#31376a",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 106
  },
  "hsl": {
    "h": 233.684,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3588,
    "c": 0.08774,
    "h": 276
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#31376A
secondary
#9B945C
accent
#C15BCD
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31376A

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

Preview Lab → · Contrast checker → · Palette generator →

#31376A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva