#313983#313983

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

Color values

HEX#313983
RGBrgb(49, 57, 131)
HSLhsl(234, 46%, 35%)
HSVhsv(234, 63%, 51%)
CMYKcmyk(62.6%, 56.5%, 0%, 48.6%)
CIE-LABlab(27.35, 20.99, -42.83)
CIE-LCHlch(27.35, 47.70, 296.11°)
OKLaboklab(38.19% 0.0093 -0.1229)
OKLCHoklch(38.19% 0.123 274.3)
XYZxyz(6.8251, 5.2174, 22.1157)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313983 #837B31
analogous
#316283 #313983 #523183
triadic
#313983 #833139 #398331
tetradic
#313983 #833162 #837B31 #318352
square
#313983 #833162 #837B31 #318352
split-complementary
#313983 #835231 #628331
monochromatic
#10122A #202656 #313983 #424CB0 #6871C6

Accessibility & contrast

On white

10.28
#313983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313983
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313983#FFFFFF#000000##FFFFFF
##3139831.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044486
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313983;
/* rgb */ color: rgb(49, 57, 131);
/* oklch */ color: oklch(38.2% 0.123 274.3);
Tailwind
colors: {
  custom: {
    50: '#726fa8',
    500: '#313983',
    950: '#000000',
  },
}
SCSS
$custom: #313983;
$custom-light: #726fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#313983",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 131
  },
  "hsl": {
    "h": 234.146,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38185,
    "c": 0.12324,
    "h": 274.3
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#313983
secondary
#AEA662
accent
#C853D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313983

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

Preview Lab → · Contrast checker → · Palette generator →

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