#31317C#31317C

#31317C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.124 H 278.2°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#31317C
RGBrgb(49, 49, 124)
HSLhsl(240, 43%, 34%)
HSVhsv(240, 60%, 49%)
CMYKcmyk(60.5%, 60.5%, 0%, 51.4%)
CIE-LABlab(24.65, 23.88, -42.79)
CIE-LCHlch(24.65, 49.01, 299.16°)
OKLaboklab(36.01% 0.0176 -0.1229)
OKLCHoklch(36.01% 0.124 278.2)
XYZxyz(6.0019, 4.3044, 19.5794)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31317C #7C7C31
analogous
#31577C #31317C #57317C
triadic
#31317C #7C3131 #317C31
tetradic
#31317C #7C3157 #7C7C31 #317C57
square
#31317C #7C3157 #7C7C31 #317C57
split-complementary
#31317C #7C5731 #577C31
monochromatic
#0E0E24 #202050 #31317C #4242A8 #6565C2

Accessibility & contrast

On white

11.28
#31317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#31317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31317C
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31317C#FFFFFF#000000##FFFFFF
##31317C1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#014351
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31317c;
/* rgb */ color: rgb(49, 49, 124);
/* oklch */ color: oklch(36.0% 0.124 278.2);
Tailwind
colors: {
  custom: {
    50: '#7169a3',
    500: '#31317c',
    950: '#000000',
  },
}
SCSS
$custom: #31317c;
$custom-light: #7169a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31317c",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3601,
    "c": 0.12412,
    "h": 278.2
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#31317C
secondary
#AAAA5F
accent
#D355D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31317C

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

Preview Lab → · Contrast checker → · Palette generator →

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