#313982#313982

#313982 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.122 H 274.4°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#313982
RGBrgb(49, 57, 130)
HSLhsl(234, 45%, 35%)
HSVhsv(234, 62%, 51%)
CMYKcmyk(62.3%, 56.2%, 0%, 49%)
CIE-LABlab(27.27, 20.63, -42.33)
CIE-LCHlch(27.27, 47.09, 295.98°)
OKLaboklab(38.11% 0.0093 -0.1214)
OKLCHoklch(38.11% 0.122 274.4)
XYZxyz(6.7577, 5.1904, 21.7605)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313982 #827A31
analogous
#316182 #313982 #513182
triadic
#313982 #823139 #398231
tetradic
#313982 #823161 #827A31 #318251
square
#313982 #823161 #827A31 #318251
split-complementary
#313982 #825131 #618231
monochromatic
#0F1229 #202656 #313982 #424CAE #6871C6

Accessibility & contrast

On white

10.30
#313982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313982
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313982#FFFFFF#000000##FFFFFF
##3139821.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074485
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313982;
/* rgb */ color: rgb(49, 57, 130);
/* oklch */ color: oklch(38.1% 0.122 274.4);
Tailwind
colors: {
  custom: {
    50: '#726fa7',
    500: '#313982',
    950: '#000000',
  },
}
SCSS
$custom: #313982;
$custom-light: #726fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#313982",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 130
  },
  "hsl": {
    "h": 234.074,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38106,
    "c": 0.12175,
    "h": 274.4
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#313982
secondary
#ADA662
accent
#C853D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313982

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

Preview Lab → · Contrast checker → · Palette generator →

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