#31279A#31279A

#31279A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.177 H 277.3°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#31279A
RGBrgb(49, 39, 154)
HSLhsl(245, 60%, 38%)
HSVhsv(245, 75%, 60%)
CMYKcmyk(68.2%, 74.7%, 0%, 39.6%)
CIE-LABlab(25.06, 40.49, -60.78)
CIE-LCHlch(25.06, 73.04, 303.67°)
OKLaboklab(37.15% 0.0224 -0.1756)
OKLCHoklch(37.15% 0.177 277.3)
XYZxyz(7.8230, 4.4364, 31.0096)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31279A #909A27
analogous
#27579A #31279A #6A279A
triadic
#31279A #9A3127 #279A31
tetradic
#31279A #9A2757 #909A27 #279A6A
square
#31279A #9A2757 #909A27 #279A6A
split-complementary
#31279A #9A6A27 #579A27
monochromatic
#120E38 #211B69 #31279A #4133CB #6E64D8

Accessibility & contrast

On white

11.13
#31279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#31279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31279A
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31279A#FFFFFF#000000##FFFFFF
##31279A1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31279a;
/* rgb */ color: rgb(49, 39, 154);
/* oklch */ color: oklch(37.1% 0.177 277.3);
Tailwind
colors: {
  custom: {
    50: '#7863b9',
    500: '#31279a',
    950: '#000000',
  },
}
SCSS
$custom: #31279a;
$custom-light: #7863b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31279a",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 245.217,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3715,
    "c": 0.17701,
    "h": 277.3
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#31279A
secondary
#B5BD5F
accent
#E345D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31279A

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

Preview Lab → · Contrast checker → · Palette generator →

#31279A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva