#31277D#31277D

#31277D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.139 H 281.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#31277D
RGBrgb(49, 39, 125)
HSLhsl(247, 52%, 32%)
HSVhsv(247, 69%, 49%)
CMYKcmyk(60.8%, 68.8%, 0%, 51%)
CIE-LABlab(22.25, 30.77, -47.35)
CIE-LCHlch(22.25, 56.47, 303.02°)
OKLaboklab(34.28% 0.0275 -0.1363)
OKLCHoklch(34.28% 0.139 281.4)
XYZxyz(5.6927, 3.5843, 19.7899)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31277D #737D27
analogous
#27487D #31277D #5C277D
triadic
#31277D #7D3127 #277D31
tetradic
#31277D #7D2748 #737D27 #277D5C
square
#31277D #7D2748 #737D27 #277D5C
split-complementary
#31277D #7D5C27 #487D27
monochromatic
#0C0A20 #1F184E #31277D #4336AC #6255CA

Accessibility & contrast

On white

12.23
#31277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31277D
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31277D#FFFFFF#000000##FFFFFF
##31277D1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#013D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31277d;
/* rgb */ color: rgb(49, 39, 125);
/* oklch */ color: oklch(34.3% 0.139 281.4);
Tailwind
colors: {
  custom: {
    50: '#7262a3',
    500: '#31277d',
    950: '#000000',
  },
}
SCSS
$custom: #31277d;
$custom-light: #7262a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31277d",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 246.977,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.13903,
    "h": 281.4
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31277D

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

Preview Lab → · Contrast checker → · Palette generator →

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