#313899#313899

#313899 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.156 H 273.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#313899
RGBrgb(49, 56, 153)
HSLhsl(236, 51%, 40%)
HSVhsv(236, 68%, 60%)
CMYKcmyk(68%, 63.4%, 0%, 40%)
CIE-LABlab(28.85, 29.64, -53.96)
CIE-LCHlch(28.85, 61.57, 298.78°)
OKLaboklab(39.86% 0.0102 -0.1556)
OKLCHoklch(39.86% 0.156 273.7)
XYZxyz(8.4287, 5.7805, 30.8024)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313899 #999231
analogous
#316C99 #313899 #5E3199
triadic
#313899 #993138 #389931
tetradic
#313899 #99316C #999231 #31995E
square
#313899 #99316C #999231 #31995E
split-complementary
#313899 #995E31 #6C9931
monochromatic
#13163C #22276B #313899 #444DC3 #7279D2

Accessibility & contrast

On white

9.74
#313899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313899
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313899#FFFFFF#000000##FFFFFF
##3138991.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313899;
/* rgb */ color: rgb(49, 56, 153);
/* oklch */ color: oklch(39.9% 0.156 273.7);
Tailwind
colors: {
  custom: {
    50: '#776eb8',
    500: '#313899',
    950: '#000000',
  },
}
SCSS
$custom: #313899;
$custom-light: #776eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#313899",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 235.962,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39858,
    "c": 0.15594,
    "h": 273.7
  },
  "luminance": 0.05781
}

Semantic roles & 50–950 ramp

primary
#313899
secondary
#BAB56C
accent
#D14DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313899

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

Preview Lab → · Contrast checker → · Palette generator →

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