#313785#313785

#313785 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.129 H 275.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#313785
RGBrgb(49, 55, 133)
HSLhsl(236, 46%, 36%)
HSVhsv(236, 63%, 52%)
CMYKcmyk(63.2%, 58.6%, 0%, 47.8%)
CIE-LABlab(26.96, 23.07, -44.71)
CIE-LCHlch(26.96, 50.31, 297.29°)
OKLaboklab(37.94% 0.0115 -0.1284)
OKLCHoklch(37.94% 0.129 275.1)
XYZxyz(6.8651, 5.0783, 22.8042)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313785 #857F31
analogous
#316185 #313785 #553185
triadic
#313785 #853137 #378531
tetradic
#313785 #853161 #857F31 #318555
square
#313785 #853161 #857F31 #318555
split-complementary
#313785 #855531 #618531
monochromatic
#10122C #212558 #313785 #4149B2 #6970C8

Accessibility & contrast

On white

10.42
#313785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313785
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313785#FFFFFF#000000##FFFFFF
##3137851.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313785;
/* rgb */ color: rgb(49, 55, 133);
/* oklch */ color: oklch(37.9% 0.129 275.1);
Tailwind
colors: {
  custom: {
    50: '#726da9',
    500: '#313785',
    950: '#000000',
  },
}
SCSS
$custom: #313785;
$custom-light: #726da9;
$custom-dark: #000000;
JSON
{
  "hex": "#313785",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 133
  },
  "hsl": {
    "h": 235.714,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37944,
    "c": 0.12894,
    "h": 275.1
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#313785
secondary
#AFAA63
accent
#CC52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313785

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

Preview Lab → · Contrast checker → · Palette generator →

#313785 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva