#313D89#313D89

#313D89 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.127 H 272.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#313D89
RGBrgb(49, 61, 137)
HSLhsl(232, 47%, 36%)
HSVhsv(232, 64%, 54%)
CMYKcmyk(64.2%, 55.5%, 0%, 46.3%)
CIE-LABlab(28.89, 20.47, -44.06)
CIE-LCHlch(28.89, 48.59, 294.92°)
OKLaboklab(39.49% 0.0055 -0.1265)
OKLCHoklch(39.49% 0.127 272.5)
XYZxyz(7.4492, 5.7960, 24.3882)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D89 #897D31
analogous
#316989 #313D89 #513189
triadic
#313D89 #89313D #3D8931
tetradic
#313D89 #893169 #897D31 #318951
square
#313D89 #893169 #897D31 #318951
split-complementary
#313D89 #895131 #698931
monochromatic
#11152F #21295C #313D89 #4151B6 #6B78CA

Accessibility & contrast

On white

9.72
#313D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D89
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D89#FFFFFF#000000##FFFFFF
##313D891.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08488C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313d89;
/* rgb */ color: rgb(49, 61, 137);
/* oklch */ color: oklch(39.5% 0.127 272.5);
Tailwind
colors: {
  custom: {
    50: '#7372ac',
    500: '#313d89',
    950: '#000000',
  },
}
SCSS
$custom: #313d89;
$custom-light: #7372ac;
$custom-dark: #000000;
JSON
{
  "hex": "#313d89",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 137
  },
  "hsl": {
    "h": 231.818,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39487,
    "c": 0.12658,
    "h": 272.5
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#313D89
secondary
#B1A764
accent
#C551D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313D89

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

Preview Lab → · Contrast checker → · Palette generator →

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