#31279D#31279D

#31279D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.181 H 276.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#31279D
RGBrgb(49, 39, 157)
HSLhsl(245, 60%, 38%)
HSVhsv(245, 75%, 62%)
CMYKcmyk(68.8%, 75.2%, 0%, 38.4%)
CIE-LABlab(25.37, 41.48, -62.11)
CIE-LCHlch(25.37, 74.68, 303.73°)
OKLaboklab(37.46% 0.0217 -0.1795)
OKLCHoklch(37.46% 0.181 276.9)
XYZxyz(8.0760, 4.5376, 32.3420)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31279D #939D27
analogous
#27589D #31279D #6C279D
triadic
#31279D #9D3127 #279D31
tetradic
#31279D #9D2758 #939D27 #279D6C
square
#31279D #9D2758 #939D27 #279D6C
split-complementary
#31279D #9D6C27 #589D27
monochromatic
#120F3B #221B6C #31279D #4135CD #6F66D9

Accessibility & contrast

On white

11.01
#31279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#31279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31279D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31279D#FFFFFF#000000##FFFFFF
##31279D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31279d;
/* rgb */ color: rgb(49, 39, 157);
/* oklch */ color: oklch(37.5% 0.181 276.9);
Tailwind
colors: {
  custom: {
    50: '#7963bb',
    500: '#31279d',
    950: '#000000',
  },
}
SCSS
$custom: #31279d;
$custom-light: #7963bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31279d",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 245.085,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37462,
    "c": 0.18077,
    "h": 276.9
  },
  "luminance": 0.04538
}

Semantic roles & 50–950 ramp

primary
#31279D
secondary
#B7BF61
accent
#E344D6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31279D

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

Preview Lab → · Contrast checker → · Palette generator →

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