#31277E#31277E

#31277E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.140 H 281.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#31277E
RGBrgb(49, 39, 126)
HSLhsl(247, 53%, 32%)
HSVhsv(247, 69%, 49%)
CMYKcmyk(61.1%, 69%, 0%, 50.6%)
CIE-LABlab(22.34, 31.11, -47.83)
CIE-LCHlch(22.34, 57.06, 303.04°)
OKLaboklab(34.37% 0.0274 -0.1377)
OKLCHoklch(34.37% 0.14 281.3)
XYZxyz(5.7569, 3.6100, 20.1281)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31277E #747E27
analogous
#27487E #31277E #5D277E
triadic
#31277E #7E3127 #277E31
tetradic
#31277E #7E2748 #747E27 #277E5D
square
#31277E #7E2748 #747E27 #277E5D
split-complementary
#31277E #7E5D27 #487E27
monochromatic
#0D0A21 #1F194F #31277E #4335AD #6355CA

Accessibility & contrast

On white

12.20
#31277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#31277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31277E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31277E#FFFFFF#000000##FFFFFF
##31277E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31277e;
/* rgb */ color: rgb(49, 39, 126);
/* oklch */ color: oklch(34.4% 0.140 281.3);
Tailwind
colors: {
  custom: {
    50: '#7262a4',
    500: '#31277e',
    950: '#000000',
  },
}
SCSS
$custom: #31277e;
$custom-light: #7262a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31277e",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 246.897,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34369,
    "c": 0.1404,
    "h": 281.3
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#31277E
secondary
#A4AF52
accent
#DC4CCC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31277E

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

Preview Lab → · Contrast checker → · Palette generator →

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