#31589C#31589C

#31589C is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.8% C 0.119 H 260.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#31589C
RGBrgb(49, 88, 156)
HSLhsl(218, 52%, 40%)
HSVhsv(218, 69%, 61%)
CMYKcmyk(68.6%, 43.6%, 0%, 38.8%)
CIE-LABlab(37.90, 9.52, -41.16)
CIE-LCHlch(37.90, 42.25, 283.02°)
OKLaboklab(46.76% -0.0192 -0.1175)
OKLCHoklch(46.76% 0.119 260.7)
XYZxyz(10.7550, 10.0316, 32.8155)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31589C #9C7531
analogous
#318D9C #31589C #40319C
triadic
#31589C #9C3158 #589C31
tetradic
#31589C #9C318D #9C7531 #319C40
square
#31589C #9C318D #9C7531 #319C40
split-complementary
#31589C #9C4031 #8D9C31
monochromatic
#14233F #223E6D #31589C #4574C5 #7497D3

Accessibility & contrast

On white

6.98
#31589C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#31589C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31589C
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31589C#FFFFFF#000000##FFFFFF
##31589C1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385F9F
Deuteranopia (green-blind)
#26559B
Tritanopia (blue-blind)
#006872
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #31589c;
/* rgb */ color: rgb(49, 88, 156);
/* oklch */ color: oklch(46.8% 0.119 260.7);
Tailwind
colors: {
  custom: {
    50: '#7586b9',
    500: '#31589c',
    950: '#000000',
  },
}
SCSS
$custom: #31589c;
$custom-light: #7586b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31589c",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 156
  },
  "hsl": {
    "h": 218.131,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46762,
    "c": 0.1191,
    "h": 260.7
  },
  "luminance": 0.10033
}

Semantic roles & 50–950 ramp

primary
#31589C
secondary
#BB9F6D
accent
#A74CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #31589C

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

Preview Lab → · Contrast checker → · Palette generator →

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