#313782#313782

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

Color values

HEX#313782
RGBrgb(49, 55, 130)
HSLhsl(236, 45%, 35%)
HSVhsv(236, 62%, 51%)
CMYKcmyk(62.3%, 57.7%, 0%, 49%)
CIE-LABlab(26.72, 21.98, -43.21)
CIE-LCHlch(26.72, 48.48, 296.96°)
OKLaboklab(37.7% 0.0114 -0.124)
OKLCHoklch(37.7% 0.125 275.2)
XYZxyz(6.6608, 4.9965, 21.7282)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313782 #827C31
analogous
#315F82 #313782 #543182
triadic
#313782 #823137 #378231
tetradic
#313782 #82315F #827C31 #318254
square
#313782 #82315F #827C31 #318254
split-complementary
#313782 #825431 #5F8231
monochromatic
#0F1129 #202456 #313782 #424AAE #686EC6

Accessibility & contrast

On white

10.50
#313782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313782
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313782#FFFFFF#000000##FFFFFF
##3137821.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313782;
/* rgb */ color: rgb(49, 55, 130);
/* oklch */ color: oklch(37.7% 0.125 275.2);
Tailwind
colors: {
  custom: {
    50: '#726da7',
    500: '#313782',
    950: '#000000',
  },
}
SCSS
$custom: #313782;
$custom-light: #726da7;
$custom-dark: #000000;
JSON
{
  "hex": "#313782",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 130
  },
  "hsl": {
    "h": 235.556,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37698,
    "c": 0.12454,
    "h": 275.2
  },
  "luminance": 0.04997
}

Semantic roles & 50–950 ramp

primary
#313782
secondary
#ADA862
accent
#CB53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313782

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

Preview Lab → · Contrast checker → · Palette generator →

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