#313685#313685

#313685 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.130 H 275.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#313685
RGBrgb(49, 54, 133)
HSLhsl(236, 46%, 36%)
HSVhsv(236, 63%, 52%)
CMYKcmyk(63.2%, 59.4%, 0%, 47.8%)
CIE-LABlab(26.69, 23.74, -45.14)
CIE-LCHlch(26.69, 51.01, 297.74°)
OKLaboklab(37.74% 0.0125 -0.1297)
OKLCHoklch(37.74% 0.13 275.5)
XYZxyz(6.8180, 4.9842, 22.7885)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313685 #858031
analogous
#316085 #313685 #563185
triadic
#313685 #853136 #368531
tetradic
#313685 #853160 #858031 #318556
square
#313685 #853160 #858031 #318556
split-complementary
#313685 #855631 #608531
monochromatic
#10122C #212458 #313685 #4148B2 #696EC8

Accessibility & contrast

On white

10.52
#313685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313685
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313685#FFFFFF#000000##FFFFFF
##3136851.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313685;
/* rgb */ color: rgb(49, 54, 133);
/* oklch */ color: oklch(37.7% 0.130 275.5);
Tailwind
colors: {
  custom: {
    50: '#736da9',
    500: '#313685',
    950: '#000000',
  },
}
SCSS
$custom: #313685;
$custom-light: #736da9;
$custom-dark: #000000;
JSON
{
  "hex": "#313685",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 133
  },
  "hsl": {
    "h": 236.429,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37745,
    "c": 0.13031,
    "h": 275.5
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#313685
secondary
#AFAB63
accent
#CE52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313685

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

Preview Lab → · Contrast checker → · Palette generator →

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