#31589B#31589B

#31589B is a mid, moderate blue. Relative luminance 0.100; OKLCH L 46.7% C 0.118 H 260.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#31589B
RGBrgb(49, 88, 155)
HSLhsl(218, 52%, 40%)
HSVhsv(218, 68%, 61%)
CMYKcmyk(68.4%, 43.2%, 0%, 39.2%)
CIE-LABlab(37.84, 9.14, -40.66)
CIE-LCHlch(37.84, 41.67, 282.67°)
OKLaboklab(46.7% -0.0194 -0.116)
OKLCHoklch(46.7% 0.118 260.5)
XYZxyz(10.6706, 9.9979, 32.3714)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31589B #9B7431
analogous
#318D9B #31589B #3F319B
triadic
#31589B #9B3158 #589B31
tetradic
#31589B #9B318D #9B7431 #319B3F
square
#31589B #9B318D #9B7431 #319B3F
split-complementary
#31589B #9B3F31 #8D9B31
monochromatic
#14233E #223E6D #31589B #4574C4 #7397D3

Accessibility & contrast

On white

7.00
#31589B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#31589B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31589B
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31589B#FFFFFF#000000##FFFFFF
##31589B1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395E9E
Deuteranopia (green-blind)
#27559A
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #31589b;
/* rgb */ color: rgb(49, 88, 155);
/* oklch */ color: oklch(46.7% 0.118 260.5);
Tailwind
colors: {
  custom: {
    50: '#7586b9',
    500: '#31589b',
    950: '#000000',
  },
}
SCSS
$custom: #31589b;
$custom-light: #7586b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31589b",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 155
  },
  "hsl": {
    "h": 217.925,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.46696,
    "c": 0.11767,
    "h": 260.5
  },
  "luminance": 0.09999
}

Semantic roles & 50–950 ramp

primary
#31589B
secondary
#BB9E6D
accent
#A74CDB
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #31589B

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

Preview Lab → · Contrast checker → · Palette generator →

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