#31375C#31375C

#31375C is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.0% C 0.065 H 275.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#31375C
RGBrgb(49, 55, 92)
HSLhsl(232, 30%, 28%)
HSVhsv(232, 47%, 36%)
CMYKcmyk(46.7%, 40.2%, 0%, 63.9%)
CIE-LABlab(24.19, 8.52, -22.96)
CIE-LCHlch(24.19, 24.49, 290.35°)
OKLaboklab(34.96% 0.0063 -0.0646)
OKLCHoklch(34.96% 0.065 275.5)
XYZxyz(4.5640, 4.1578, 10.6852)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31375C #5C5631
analogous
#314C5C #31375C #41315C
triadic
#31375C #5C3137 #375C31
tetradic
#31375C #5C314C #5C5631 #315C41
square
#31375C #5C314C #5C5631 #315C41
split-complementary
#31375C #5C4131 #4C5C31
monochromatic
#0B0C14 #1C1F34 #31375C #464F84 #5E69A9

Accessibility & contrast

On white

11.47
#31375C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31375C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31375C
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31375C#FFFFFF#000000##FFFFFF
##31375C1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3B5D
Deuteranopia (green-blind)
#26385B
Tritanopia (blue-blind)
#233F45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31375c;
/* rgb */ color: rgb(49, 55, 92);
/* oklch */ color: oklch(35.0% 0.065 275.5);
Tailwind
colors: {
  custom: {
    50: '#6b6d8a',
    500: '#31375c',
    950: '#000000',
  },
}
SCSS
$custom: #31375c;
$custom-light: #6b6d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#31375c",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 92
  },
  "hsl": {
    "h": 231.628,
    "s": 30.496,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34959,
    "c": 0.06492,
    "h": 275.5
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#31375C
secondary
#8D865C
accent
#B961C7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07070C
muted
#7A7A7D

Preview Lab

Preview with #31375C

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

Preview Lab → · Contrast checker → · Palette generator →

#31375C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva