#313399#313399

#313399 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.162 H 275.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#313399
RGBrgb(49, 51, 153)
HSLhsl(239, 51%, 40%)
HSVhsv(239, 68%, 60%)
CMYKcmyk(68%, 66.7%, 0%, 40%)
CIE-LABlab(27.63, 32.87, -55.96)
CIE-LCHlch(27.63, 64.90, 300.43°)
OKLaboklab(38.96% 0.0142 -0.1615)
OKLCHoklch(38.96% 0.162 275)
XYZxyz(8.1983, 5.3198, 30.7256)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313399 #999731
analogous
#316799 #313399 #633199
triadic
#313399 #993133 #339931
tetradic
#313399 #993167 #999731 #319963
square
#313399 #993167 #999731 #319963
split-complementary
#313399 #996331 #679931
monochromatic
#13143C #22246B #313399 #4447C3 #7274D2

Accessibility & contrast

On white

10.17
#313399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313399
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313399#FFFFFF#000000##FFFFFF
##3133991.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313399;
/* rgb */ color: rgb(49, 51, 153);
/* oklch */ color: oklch(39.0% 0.162 275.0);
Tailwind
colors: {
  custom: {
    50: '#776bb8',
    500: '#313399',
    950: '#000000',
  },
}
SCSS
$custom: #313399;
$custom-light: #776bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#313399",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 238.846,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38962,
    "c": 0.16213,
    "h": 275
  },
  "luminance": 0.05321
}

Semantic roles & 50–950 ramp

primary
#313399
secondary
#BAB86C
accent
#D84DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313399

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

Preview Lab → · Contrast checker → · Palette generator →

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