#313486#313486

#313486 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.134 H 276.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#313486
RGBrgb(49, 52, 134)
HSLhsl(238, 46%, 36%)
HSVhsv(238, 63%, 53%)
CMYKcmyk(63.4%, 61.2%, 0%, 47.5%)
CIE-LABlab(26.24, 25.45, -46.49)
CIE-LCHlch(26.24, 53.00, 298.69°)
OKLaboklab(37.44% 0.0144 -0.1337)
OKLCHoklch(37.44% 0.134 276.2)
XYZxyz(6.7963, 4.8296, 23.1237)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313486 #868331
analogous
#315E86 #313486 #583186
triadic
#313486 #863134 #348631
tetradic
#313486 #86315E #868331 #318658
square
#313486 #86315E #868331 #318658
split-complementary
#313486 #865831 #5E8631
monochromatic
#10112C #212359 #313486 #4145B3 #696DC8

Accessibility & contrast

On white

10.68
#313486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#313486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313486
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313486#FFFFFF#000000##FFFFFF
##3134861.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313486;
/* rgb */ color: rgb(49, 52, 134);
/* oklch */ color: oklch(37.4% 0.134 276.2);
Tailwind
colors: {
  custom: {
    50: '#736baa',
    500: '#313486',
    950: '#000000',
  },
}
SCSS
$custom: #313486;
$custom-light: #736baa;
$custom-dark: #000000;
JSON
{
  "hex": "#313486",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 134
  },
  "hsl": {
    "h": 237.882,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3744,
    "c": 0.13448,
    "h": 276.2
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#313486
secondary
#B0AD63
accent
#D152D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313486

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

Preview Lab → · Contrast checker → · Palette generator →

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