#313799#313799

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

Color values

HEX#313799
RGBrgb(49, 55, 153)
HSLhsl(237, 51%, 40%)
HSVhsv(237, 68%, 60%)
CMYKcmyk(68%, 64.1%, 0%, 40%)
CIE-LABlab(28.60, 30.29, -54.37)
CIE-LCHlch(28.60, 62.24, 299.13°)
OKLaboklab(39.67% 0.011 -0.1568)
OKLCHoklch(39.67% 0.157 274)
XYZxyz(8.3807, 5.6845, 30.7864)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313799 #999331
analogous
#316B99 #313799 #5F3199
triadic
#313799 #993137 #379931
tetradic
#313799 #99316B #999331 #31995F
square
#313799 #99316B #999331 #31995F
split-complementary
#313799 #995F31 #6B9931
monochromatic
#13163C #22266B #313799 #444BC3 #7278D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313799#FFFFFF#000000##FFFFFF
##3137991.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)
#00489C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313799;
/* rgb */ color: rgb(49, 55, 153);
/* oklch */ color: oklch(39.7% 0.157 274.0);
Tailwind
colors: {
  custom: {
    50: '#776eb8',
    500: '#313799',
    950: '#000000',
  },
}
SCSS
$custom: #313799;
$custom-light: #776eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#313799",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 236.538,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39675,
    "c": 0.1572,
    "h": 274
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#313799
secondary
#BAB56C
accent
#D34DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313799

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

Preview Lab → · Contrast checker → · Palette generator →

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