#31379A#31379A

#31379A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.159 H 274.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#31379A
RGBrgb(49, 55, 154)
HSLhsl(237, 52%, 40%)
HSVhsv(237, 68%, 60%)
CMYKcmyk(68.2%, 64.3%, 0%, 39.6%)
CIE-LABlab(28.69, 30.65, -54.84)
CIE-LCHlch(28.69, 62.82, 299.20°)
OKLaboklab(39.77% 0.011 -0.1582)
OKLCHoklch(39.77% 0.159 274)
XYZxyz(8.4636, 5.7177, 31.2232)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31379A #9A9431
analogous
#316C9A #31379A #5F319A
triadic
#31379A #9A3137 #379A31
tetradic
#31379A #9A316C #9A9431 #319A5F
square
#31379A #9A316C #9A9431 #319A5F
split-complementary
#31379A #9A5F31 #6C9A31
monochromatic
#13163D #22266C #31379A #454CC4 #7378D2

Accessibility & contrast

On white

9.80
#31379A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#31379A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31379A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31379A#FFFFFF#000000##FFFFFF
##31379A1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#005063
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31379a;
/* rgb */ color: rgb(49, 55, 154);
/* oklch */ color: oklch(39.8% 0.159 274.0);
Tailwind
colors: {
  custom: {
    50: '#776eb9',
    500: '#31379a',
    950: '#000000',
  },
}
SCSS
$custom: #31379a;
$custom-light: #776eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31379a",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 154
  },
  "hsl": {
    "h": 236.571,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39765,
    "c": 0.15857,
    "h": 274
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#31379A
secondary
#BAB66C
accent
#D34DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #31379A

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

Preview Lab → · Contrast checker → · Palette generator →

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