#313984#313984

#313984 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.125 H 274.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#313984
RGBrgb(49, 57, 132)
HSLhsl(234, 46%, 35%)
HSVhsv(234, 63%, 52%)
CMYKcmyk(62.9%, 56.8%, 0%, 48.2%)
CIE-LABlab(27.42, 21.35, -43.33)
CIE-LCHlch(27.42, 48.31, 296.23°)
OKLaboklab(38.27% 0.0094 -0.1244)
OKLCHoklch(38.27% 0.125 274.3)
XYZxyz(6.8932, 5.2446, 22.4744)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313984 #847C31
analogous
#316284 #313984 #523184
triadic
#313984 #843139 #398431
tetradic
#313984 #843162 #847C31 #318452
square
#313984 #843162 #847C31 #318452
split-complementary
#313984 #845231 #628431
monochromatic
#10122B #202657 #313984 #424CB1 #6871C7

Accessibility & contrast

On white

10.25
#313984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313984
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313984#FFFFFF#000000##FFFFFF
##3139841.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024487
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313984;
/* rgb */ color: rgb(49, 57, 132);
/* oklch */ color: oklch(38.3% 0.125 274.3);
Tailwind
colors: {
  custom: {
    50: '#726fa8',
    500: '#313984',
    950: '#000000',
  },
}
SCSS
$custom: #313984;
$custom-light: #726fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#313984",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 132
  },
  "hsl": {
    "h": 234.217,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38266,
    "c": 0.12471,
    "h": 274.3
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#313984
secondary
#AEA762
accent
#C952D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313984

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

Preview Lab → · Contrast checker → · Palette generator →

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