#31279F#31279F

#31279F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.183 H 276.7°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#31279F
RGBrgb(49, 39, 159)
HSLhsl(245, 61%, 39%)
HSVhsv(245, 75%, 62%)
CMYKcmyk(69.2%, 75.5%, 0%, 37.6%)
CIE-LABlab(25.58, 42.13, -62.98)
CIE-LCHlch(25.58, 75.77, 303.78°)
OKLaboklab(37.67% 0.0213 -0.182)
OKLCHoklch(37.67% 0.183 276.7)
XYZxyz(8.2481, 4.6065, 33.2486)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31279F #959F27
analogous
#27599F #31279F #6D279F
triadic
#31279F #9F3127 #279F31
tetradic
#31279F #9F2759 #959F27 #279F6D
square
#31279F #9F2759 #959F27 #279F6D
split-complementary
#31279F #9F6D27 #599F27
monochromatic
#130F3D #221B6E #31279F #4236CE #7067DA

Accessibility & contrast

On white

10.93
#31279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#31279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31279F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31279F#FFFFFF#000000##FFFFFF
##31279F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31279f;
/* rgb */ color: rgb(49, 39, 159);
/* oklch */ color: oklch(37.7% 0.183 276.7);
Tailwind
colors: {
  custom: {
    50: '#7963bd',
    500: '#31279f',
    950: '#000000',
  },
}
SCSS
$custom: #31279f;
$custom-light: #7963bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31279f",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 245,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37672,
    "c": 0.18325,
    "h": 276.7
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#31279F
secondary
#B8C062
accent
#E444D6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31279F

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

Preview Lab → · Contrast checker → · Palette generator →

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