#313993#313993

#313993 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.146 H 273.7°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#313993
RGBrgb(49, 57, 147)
HSLhsl(235, 50%, 38%)
HSVhsv(235, 67%, 58%)
CMYKcmyk(66.7%, 61.2%, 0%, 42.4%)
CIE-LABlab(28.60, 26.82, -50.69)
CIE-LCHlch(28.60, 57.35, 297.88°)
OKLaboklab(39.52% 0.0095 -0.146)
OKLCHoklch(39.52% 0.146 273.7)
XYZxyz(7.9945, 5.6851, 28.2741)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313993 #938B31
analogous
#316A93 #313993 #5A3193
triadic
#313993 #933139 #399331
tetradic
#313993 #93316A #938B31 #31935A
square
#313993 #93316A #938B31 #31935A
split-complementary
#313993 #935A31 #6A9331
monochromatic
#121537 #222765 #313993 #414CC0 #6F77CF

Accessibility & contrast

On white

9.83
#313993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313993
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313993#FFFFFF#000000##FFFFFF
##3139931.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004896
Deuteranopia (green-blind)
#003F91
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313993;
/* rgb */ color: rgb(49, 57, 147);
/* oklch */ color: oklch(39.5% 0.146 273.7);
Tailwind
colors: {
  custom: {
    50: '#756fb3',
    500: '#313993',
    950: '#000000',
  },
}
SCSS
$custom: #313993;
$custom-light: #756fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#313993",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 147
  },
  "hsl": {
    "h": 235.102,
    "s": 50,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39518,
    "c": 0.14632,
    "h": 273.7
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#313993
secondary
#B7B069
accent
#CE4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313993

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

Preview Lab → · Contrast checker → · Palette generator →

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