#313F89#313F89

#313F89 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.124 H 271.6°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#313F89
RGBrgb(49, 63, 137)
HSLhsl(230, 47%, 36%)
HSVhsv(230, 64%, 54%)
CMYKcmyk(64.2%, 54%, 0%, 46.3%)
CIE-LABlab(29.45, 19.12, -43.17)
CIE-LCHlch(29.45, 47.21, 293.89°)
OKLaboklab(39.9% 0.0035 -0.1238)
OKLCHoklch(39.9% 0.124 271.6)
XYZxyz(7.5580, 6.0135, 24.4245)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F89 #897B31
analogous
#316B89 #313F89 #4F3189
triadic
#313F89 #89313F #3F8931
tetradic
#313F89 #89316B #897B31 #31894F
square
#313F89 #89316B #897B31 #31894F
split-complementary
#313F89 #894F31 #6B8931
monochromatic
#11162F #212A5C #313F89 #4154B6 #6B7ACA

Accessibility & contrast

On white

9.53
#313F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#313F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F89
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F89#FFFFFF#000000##FFFFFF
##313F891.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11498C
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313f89;
/* rgb */ color: rgb(49, 63, 137);
/* oklch */ color: oklch(39.9% 0.124 271.6);
Tailwind
colors: {
  custom: {
    50: '#7373ac',
    500: '#313f89',
    950: '#000000',
  },
}
SCSS
$custom: #313f89;
$custom-light: #7373ac;
$custom-dark: #000000;
JSON
{
  "hex": "#313f89",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 137
  },
  "hsl": {
    "h": 230.455,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39904,
    "c": 0.12384,
    "h": 271.6
  },
  "luminance": 0.06014
}

Semantic roles & 50–950 ramp

primary
#313F89
secondary
#B1A564
accent
#C251D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313F89

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

Preview Lab → · Contrast checker → · Palette generator →

#313F89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva