#31277F#31277F

#31277F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.142 H 281.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#31277F
RGBrgb(49, 39, 127)
HSLhsl(247, 53%, 33%)
HSVhsv(247, 69%, 50%)
CMYKcmyk(61.4%, 69.3%, 0%, 50.2%)
CIE-LABlab(22.43, 31.45, -48.31)
CIE-LCHlch(22.43, 57.65, 303.06°)
OKLaboklab(34.46% 0.0273 -0.1391)
OKLCHoklch(34.46% 0.142 281.1)
XYZxyz(5.8217, 3.6359, 20.4696)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31277F #757F27
analogous
#27497F #31277F #5D277F
triadic
#31277F #7F3127 #277F31
tetradic
#31277F #7F2749 #757F27 #277F5D
square
#31277F #7F2749 #757F27 #277F5D
split-complementary
#31277F #7F5D27 #497F27
monochromatic
#0D0A21 #1F1950 #31277F #4335AE #6355CB

Accessibility & contrast

On white

12.16
#31277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#31277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31277F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31277F#FFFFFF#000000##FFFFFF
##31277F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31277f;
/* rgb */ color: rgb(49, 39, 127);
/* oklch */ color: oklch(34.5% 0.142 281.1);
Tailwind
colors: {
  custom: {
    50: '#7362a5',
    500: '#31277f',
    950: '#000000',
  },
}
SCSS
$custom: #31277f;
$custom-light: #7362a5;
$custom-dark: #000000;
JSON
{
  "hex": "#31277f",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 246.818,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34464,
    "c": 0.14177,
    "h": 281.1
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#31277F
secondary
#A5B052
accent
#DC4BCC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31277F

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

Preview Lab → · Contrast checker → · Palette generator →

#31277F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva