#313699#313699

#313699 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.158 H 274.3°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#313699
RGBrgb(49, 54, 153)
HSLhsl(237, 51%, 40%)
HSVhsv(237, 68%, 60%)
CMYKcmyk(68%, 64.7%, 0%, 40%)
CIE-LABlab(28.35, 30.94, -54.77)
CIE-LCHlch(28.35, 62.91, 299.46°)
OKLaboklab(39.49% 0.0118 -0.158)
OKLCHoklch(39.49% 0.158 274.3)
XYZxyz(8.3337, 5.5905, 30.7707)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313699 #999431
analogous
#316A99 #313699 #603199
triadic
#313699 #993136 #369931
tetradic
#313699 #99316A #999431 #319960
square
#313699 #99316A #999431 #319960
split-complementary
#313699 #996031 #6A9931
monochromatic
#13153C #22266B #313699 #444AC3 #7277D2

Accessibility & contrast

On white

9.91
#313699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313699
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313699#FFFFFF#000000##FFFFFF
##3136991.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313699;
/* rgb */ color: rgb(49, 54, 153);
/* oklch */ color: oklch(39.5% 0.158 274.3);
Tailwind
colors: {
  custom: {
    50: '#776db8',
    500: '#313699',
    950: '#000000',
  },
}
SCSS
$custom: #313699;
$custom-light: #776db8;
$custom-dark: #000000;
JSON
{
  "hex": "#313699",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 153
  },
  "hsl": {
    "h": 237.115,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39493,
    "c": 0.15845,
    "h": 274.3
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#313699
secondary
#BAB66C
accent
#D44DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313699

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

Preview Lab → · Contrast checker → · Palette generator →

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