#313582#313582

#313582 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.127 H 276.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#313582
RGBrgb(49, 53, 130)
HSLhsl(237, 45%, 35%)
HSVhsv(237, 62%, 51%)
CMYKcmyk(62.3%, 59.2%, 0%, 49%)
CIE-LABlab(26.19, 23.33, -44.08)
CIE-LCHlch(26.19, 49.88, 297.89°)
OKLaboklab(37.3% 0.0135 -0.1266)
OKLCHoklch(37.3% 0.127 276.1)
XYZxyz(6.5677, 4.8104, 21.6972)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313582 #827E31
analogous
#315D82 #313582 #553182
triadic
#313582 #823135 #358231
tetradic
#313582 #82315D #827E31 #318255
square
#313582 #82315D #827E31 #318255
split-complementary
#313582 #825531 #5D8231
monochromatic
#0F1129 #202356 #313582 #4247AE #686CC6

Accessibility & contrast

On white

10.70
#313582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#313582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313582
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313582#FFFFFF#000000##FFFFFF
##3135821.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004756
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313582;
/* rgb */ color: rgb(49, 53, 130);
/* oklch */ color: oklch(37.3% 0.127 276.1);
Tailwind
colors: {
  custom: {
    50: '#726ca7',
    500: '#313582',
    950: '#000000',
  },
}
SCSS
$custom: #313582;
$custom-light: #726ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#313582",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 130
  },
  "hsl": {
    "h": 237.037,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37298,
    "c": 0.12731,
    "h": 276.1
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#313582
secondary
#ADAA62
accent
#CF53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313582

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

Preview Lab → · Contrast checker → · Palette generator →

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