#31589F#31589F

#31589F is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.123 H 261.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#31589F
RGBrgb(49, 88, 159)
HSLhsl(219, 53%, 41%)
HSVhsv(219, 69%, 62%)
CMYKcmyk(69.2%, 44.7%, 0%, 37.6%)
CIE-LABlab(38.08, 10.64, -42.67)
CIE-LCHlch(38.08, 43.97, 284.00°)
OKLaboklab(46.96% -0.0187 -0.1219)
OKLCHoklch(46.96% 0.123 261.3)
XYZxyz(11.0121, 10.1345, 34.1700)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31589F #9F7831
analogous
#318F9F #31589F #41319F
triadic
#31589F #9F3158 #589F31
tetradic
#31589F #9F318F #9F7831 #319F41
square
#31589F #9F318F #9F7831 #319F41
split-complementary
#31589F #9F4131 #8F9F31
monochromatic
#142441 #233E70 #31589F #4774C6 #7697D5

Accessibility & contrast

On white

6.94
#31589F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#31589F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31589F
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31589F#FFFFFF#000000##FFFFFF
##31589F1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365FA2
Deuteranopia (green-blind)
#22559E
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #31589f;
/* rgb */ color: rgb(49, 88, 159);
/* oklch */ color: oklch(47.0% 0.123 261.3);
Tailwind
colors: {
  custom: {
    50: '#7686bc',
    500: '#31589f',
    950: '#000000',
  },
}
SCSS
$custom: #31589f;
$custom-light: #7686bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31589f",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 159
  },
  "hsl": {
    "h": 218.727,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46963,
    "c": 0.12337,
    "h": 261.3
  },
  "luminance": 0.10136
}

Semantic roles & 50–950 ramp

primary
#31589F
secondary
#BDA16F
accent
#A94CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #31589F

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

Preview Lab → · Contrast checker → · Palette generator →

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