#31277C#31277C

#31277C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.138 H 281.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#31277C
RGBrgb(49, 39, 124)
HSLhsl(247, 52%, 32%)
HSVhsv(247, 69%, 49%)
CMYKcmyk(60.5%, 68.5%, 0%, 51.4%)
CIE-LABlab(22.16, 30.43, -46.86)
CIE-LCHlch(22.16, 55.87, 303.00°)
OKLaboklab(34.18% 0.0277 -0.1349)
OKLCHoklch(34.18% 0.138 281.6)
XYZxyz(5.6291, 3.5589, 19.4552)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31277C #727C27
analogous
#27487C #31277C #5C277C
triadic
#31277C #7C3127 #277C31
tetradic
#31277C #7C2748 #727C27 #277C5C
square
#31277C #7C2748 #727C27 #277C5C
split-complementary
#31277C #7C5C27 #487C27
monochromatic
#0C0A1F #1F184D #31277C #4336AB #6254C9

Accessibility & contrast

On white

12.27
#31277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#31277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31277C
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31277C#FFFFFF#000000##FFFFFF
##31277C1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#033D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31277c;
/* rgb */ color: rgb(49, 39, 124);
/* oklch */ color: oklch(34.2% 0.138 281.6);
Tailwind
colors: {
  custom: {
    50: '#7262a3',
    500: '#31277c',
    950: '#000000',
  },
}
SCSS
$custom: #31277c;
$custom-light: #7262a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31277c",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 247.059,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34182,
    "c": 0.13767,
    "h": 281.6
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#31277C
secondary
#A3AE51
accent
#DC4CCB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31277C

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

Preview Lab → · Contrast checker → · Palette generator →

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