#313886#313886

#313886 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.129 H 274.7°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#313886
RGBrgb(49, 56, 134)
HSLhsl(235, 46%, 36%)
HSVhsv(235, 63%, 53%)
CMYKcmyk(63.4%, 58.2%, 0%, 47.5%)
CIE-LABlab(27.30, 22.76, -44.77)
CIE-LCHlch(27.30, 50.22, 296.95°)
OKLaboklab(38.23% 0.0105 -0.1286)
OKLCHoklch(38.23% 0.129 274.7)
XYZxyz(6.9825, 5.2020, 23.1858)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313886 #867F31
analogous
#316286 #313886 #543186
triadic
#313886 #863138 #388631
tetradic
#313886 #863162 #867F31 #318654
square
#313886 #863162 #867F31 #318654
split-complementary
#313886 #865431 #628631
monochromatic
#10132C #212559 #313886 #414BB3 #6971C8

Accessibility & contrast

On white

10.29
#313886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313886
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313886#FFFFFF#000000##FFFFFF
##3138861.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313886;
/* rgb */ color: rgb(49, 56, 134);
/* oklch */ color: oklch(38.2% 0.129 274.7);
Tailwind
colors: {
  custom: {
    50: '#736eaa',
    500: '#313886',
    950: '#000000',
  },
}
SCSS
$custom: #313886;
$custom-light: #736eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#313886",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 134
  },
  "hsl": {
    "h": 235.059,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38226,
    "c": 0.12903,
    "h": 274.7
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#313886
secondary
#B0A963
accent
#CB52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313886

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

Preview Lab → · Contrast checker → · Palette generator →

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