#313E89#313E89

#313E89 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.125 H 272.1°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#313E89
RGBrgb(49, 62, 137)
HSLhsl(231, 47%, 36%)
HSVhsv(231, 64%, 54%)
CMYKcmyk(64.2%, 54.7%, 0%, 46.3%)
CIE-LABlab(29.17, 19.80, -43.61)
CIE-LCHlch(29.17, 47.90, 294.41°)
OKLaboklab(39.7% 0.0045 -0.1251)
OKLCHoklch(39.7% 0.125 272.1)
XYZxyz(7.5031, 5.9037, 24.4062)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E89 #897C31
analogous
#316A89 #313E89 #503189
triadic
#313E89 #89313E #3E8931
tetradic
#313E89 #89316A #897C31 #318950
square
#313E89 #89316A #897C31 #318950
split-complementary
#313E89 #895031 #6A8931
monochromatic
#11152F #212A5C #313E89 #4152B6 #6B79CA

Accessibility & contrast

On white

9.63
#313E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#313E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E89
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E89#FFFFFF#000000##FFFFFF
##313E891.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D498C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313e89;
/* rgb */ color: rgb(49, 62, 137);
/* oklch */ color: oklch(39.7% 0.125 272.1);
Tailwind
colors: {
  custom: {
    50: '#7373ac',
    500: '#313e89',
    950: '#000000',
  },
}
SCSS
$custom: #313e89;
$custom-light: #7373ac;
$custom-dark: #000000;
JSON
{
  "hex": "#313e89",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 137
  },
  "hsl": {
    "h": 231.136,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39695,
    "c": 0.12521,
    "h": 272.1
  },
  "luminance": 0.05904
}

Semantic roles & 50–950 ramp

primary
#313E89
secondary
#B1A664
accent
#C351D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313E89

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

Preview Lab → · Contrast checker → · Palette generator →

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