#31539B#31539B

#31539B is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.124 H 263.3°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#31539B
RGBrgb(49, 83, 155)
HSLhsl(221, 52%, 40%)
HSVhsv(221, 68%, 61%)
CMYKcmyk(68.4%, 46.5%, 0%, 39.2%)
CIE-LABlab(36.38, 12.42, -43.00)
CIE-LCHlch(36.38, 44.76, 286.11°)
OKLaboklab(45.57% -0.0144 -0.123)
OKLCHoklch(45.57% 0.124 263.3)
XYZxyz(10.2742, 9.2050, 32.2393)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31539B #9B7931
analogous
#31889B #31539B #44319B
triadic
#31539B #9B3153 #539B31
tetradic
#31539B #9B3188 #9B7931 #319B44
square
#31539B #9B3188 #9B7931 #319B44
split-complementary
#31539B #9B4431 #889B31
monochromatic
#14213E #223A6D #31539B #456EC4 #7392D3

Accessibility & contrast

On white

7.39
#31539B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#31539B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31539B
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31539B#FFFFFF#000000##FFFFFF
##31539B1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5B9E
Deuteranopia (green-blind)
#1B519A
Tritanopia (blue-blind)
#00646F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #31539b;
/* rgb */ color: rgb(49, 83, 155);
/* oklch */ color: oklch(45.6% 0.124 263.3);
Tailwind
colors: {
  custom: {
    50: '#7582b9',
    500: '#31539b',
    950: '#000000',
  },
}
SCSS
$custom: #31539b;
$custom-light: #7582b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31539b",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 155
  },
  "hsl": {
    "h": 220.755,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.45569,
    "c": 0.12385,
    "h": 263.3
  },
  "luminance": 0.09206
}

Semantic roles & 50–950 ramp

primary
#31539B
secondary
#BBA26D
accent
#AE4CDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #31539B

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

Preview Lab → · Contrast checker → · Palette generator →

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