#31539A#31539A

#31539A is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.5% C 0.122 H 263.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#31539A
RGBrgb(49, 83, 154)
HSLhsl(221, 52%, 40%)
HSVhsv(221, 68%, 60%)
CMYKcmyk(68.2%, 46.1%, 0%, 39.6%)
CIE-LABlab(36.31, 12.05, -42.50)
CIE-LCHlch(36.31, 44.17, 285.83°)
OKLaboklab(45.5% -0.0146 -0.1215)
OKLCHoklch(45.5% 0.122 263.1)
XYZxyz(10.1906, 9.1716, 31.7988)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31539A #9A7831
analogous
#31889A #31539A #43319A
triadic
#31539A #9A3153 #539A31
tetradic
#31539A #9A3188 #9A7831 #319A43
square
#31539A #9A3188 #9A7831 #319A43
split-complementary
#31539A #9A4331 #889A31
monochromatic
#13213D #223A6C #31539A #456EC4 #7392D2

Accessibility & contrast

On white

7.41
#31539A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#31539A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31539A
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31539A#FFFFFF#000000##FFFFFF
##31539A1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305B9D
Deuteranopia (green-blind)
#1D5199
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #31539a;
/* rgb */ color: rgb(49, 83, 154);
/* oklch */ color: oklch(45.5% 0.122 263.1);
Tailwind
colors: {
  custom: {
    50: '#7582b8',
    500: '#31539a',
    950: '#000000',
  },
}
SCSS
$custom: #31539a;
$custom-light: #7582b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31539a",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 154
  },
  "hsl": {
    "h": 220.571,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.455,
    "c": 0.12241,
    "h": 263.1
  },
  "luminance": 0.09173
}

Semantic roles & 50–950 ramp

primary
#31539A
secondary
#BAA16C
accent
#AD4DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #31539A

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

Preview Lab → · Contrast checker → · Palette generator →

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