#31279B#31279B

#31279B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.178 H 277.1°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#31279B
RGBrgb(49, 39, 155)
HSLhsl(245, 60%, 38%)
HSVhsv(245, 75%, 61%)
CMYKcmyk(68.4%, 74.8%, 0%, 39.2%)
CIE-LABlab(25.17, 40.82, -61.23)
CIE-LCHlch(25.17, 73.59, 303.69°)
OKLaboklab(37.25% 0.0222 -0.1769)
OKLCHoklch(37.25% 0.178 277.1)
XYZxyz(7.9066, 4.4699, 31.4501)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31279B #919B27
analogous
#27579B #31279B #6B279B
triadic
#31279B #9B3127 #279B31
tetradic
#31279B #9B2757 #919B27 #279B6B
square
#31279B #9B2757 #919B27 #279B6B
split-complementary
#31279B #9B6B27 #579B27
monochromatic
#120E39 #221B6A #31279B #4133CC #6E64D8

Accessibility & contrast

On white

11.09
#31279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31279B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31279B#FFFFFF#000000##FFFFFF
##31279B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31279b;
/* rgb */ color: rgb(49, 39, 155);
/* oklch */ color: oklch(37.3% 0.178 277.1);
Tailwind
colors: {
  custom: {
    50: '#7963ba',
    500: '#31279b',
    950: '#000000',
  },
}
SCSS
$custom: #31279b;
$custom-light: #7963ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31279b",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 245.172,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37254,
    "c": 0.17827,
    "h": 277.1
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31279B

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

Preview Lab → · Contrast checker → · Palette generator →

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