#313682#313682

#313682 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.126 H 275.7°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#313682
RGBrgb(49, 54, 130)
HSLhsl(236, 45%, 35%)
HSVhsv(236, 62%, 51%)
CMYKcmyk(62.3%, 58.5%, 0%, 49%)
CIE-LABlab(26.46, 22.66, -43.65)
CIE-LCHlch(26.46, 49.18, 297.43°)
OKLaboklab(37.5% 0.0124 -0.1253)
OKLCHoklch(37.5% 0.126 275.7)
XYZxyz(6.6137, 4.9025, 21.7125)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313682 #827D31
analogous
#315F82 #313682 #543182
triadic
#313682 #823136 #368231
tetradic
#313682 #82315F #827D31 #318254
square
#313682 #82315F #827D31 #318254
split-complementary
#313682 #825431 #5F8231
monochromatic
#0F1129 #202456 #313682 #4248AE #686DC6

Accessibility & contrast

On white

10.60
#313682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313682
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313682#FFFFFF#000000##FFFFFF
##3136821.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004856
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313682;
/* rgb */ color: rgb(49, 54, 130);
/* oklch */ color: oklch(37.5% 0.126 275.7);
Tailwind
colors: {
  custom: {
    50: '#726da7',
    500: '#313682',
    950: '#000000',
  },
}
SCSS
$custom: #313682;
$custom-light: #726da7;
$custom-dark: #000000;
JSON
{
  "hex": "#313682",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 130
  },
  "hsl": {
    "h": 236.296,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37497,
    "c": 0.12593,
    "h": 275.7
  },
  "luminance": 0.04903
}

Semantic roles & 50–950 ramp

primary
#313682
secondary
#ADA962
accent
#CD53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313682

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

Preview Lab → · Contrast checker → · Palette generator →

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