#313B89#313B89

#313B89 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.129 H 273.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#313B89
RGBrgb(49, 59, 137)
HSLhsl(233, 47%, 36%)
HSVhsv(233, 64%, 54%)
CMYKcmyk(64.2%, 56.9%, 0%, 46.3%)
CIE-LABlab(28.34, 21.83, -44.95)
CIE-LCHlch(28.34, 49.97, 295.90°)
OKLaboklab(39.08% 0.0076 -0.1291)
OKLCHoklch(39.08% 0.129 273.3)
XYZxyz(7.3444, 5.5864, 24.3533)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B89 #897F31
analogous
#316789 #313B89 #533189
triadic
#313B89 #89313B #3B8931
tetradic
#313B89 #893167 #897F31 #318953
square
#313B89 #893167 #897F31 #318953
split-complementary
#313B89 #895331 #678931
monochromatic
#11142F #21285C #313B89 #414EB6 #6B75CA

Accessibility & contrast

On white

9.92
#313B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B89
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B89#FFFFFF#000000##FFFFFF
##313B891.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313b89;
/* rgb */ color: rgb(49, 59, 137);
/* oklch */ color: oklch(39.1% 0.129 273.3);
Tailwind
colors: {
  custom: {
    50: '#7370ac',
    500: '#313b89',
    950: '#000000',
  },
}
SCSS
$custom: #313b89;
$custom-light: #7370ac;
$custom-dark: #000000;
JSON
{
  "hex": "#313b89",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 137
  },
  "hsl": {
    "h": 233.182,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39076,
    "c": 0.12931,
    "h": 273.3
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#313B89
secondary
#B1A964
accent
#C851D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313B89

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

Preview Lab → · Contrast checker → · Palette generator →

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