#313C85#313C85

#313C85 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.122 H 273.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#313C85
RGBrgb(49, 60, 133)
HSLhsl(232, 46%, 36%)
HSVhsv(232, 63%, 52%)
CMYKcmyk(63.2%, 54.9%, 0%, 47.8%)
CIE-LABlab(28.32, 19.68, -42.50)
CIE-LCHlch(28.32, 46.84, 294.85°)
OKLaboklab(38.96% 0.0063 -0.1219)
OKLCHoklch(38.96% 0.122 273)
XYZxyz(7.1147, 5.5776, 22.8874)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C85 #857A31
analogous
#316685 #313C85 #503185
triadic
#313C85 #85313C #3C8531
tetradic
#313C85 #853166 #857A31 #318550
square
#313C85 #853166 #857A31 #318550
split-complementary
#313C85 #855031 #668531
monochromatic
#10142C #212858 #313C85 #4150B2 #6975C8

Accessibility & contrast

On white

9.93
#313C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313C85
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C85#FFFFFF#000000##FFFFFF
##313C851.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4788
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313c85;
/* rgb */ color: rgb(49, 60, 133);
/* oklch */ color: oklch(39.0% 0.122 273.0);
Tailwind
colors: {
  custom: {
    50: '#7271a9',
    500: '#313c85',
    950: '#000000',
  },
}
SCSS
$custom: #313c85;
$custom-light: #7271a9;
$custom-dark: #000000;
JSON
{
  "hex": "#313c85",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 133
  },
  "hsl": {
    "h": 232.143,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38964,
    "c": 0.12204,
    "h": 273
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

primary
#313C85
secondary
#AFA563
accent
#C552D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313C85

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

Preview Lab → · Contrast checker → · Palette generator →

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