#313698#313698

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

Color values

HEX#313698
RGBrgb(49, 54, 152)
HSLhsl(237, 51%, 39%)
HSVhsv(237, 68%, 60%)
CMYKcmyk(67.8%, 64.5%, 0%, 40.4%)
CIE-LABlab(28.27, 30.59, -54.30)
CIE-LCHlch(28.27, 62.33, 299.39°)
OKLaboklab(39.4% 0.0119 -0.1566)
OKLCHoklch(39.4% 0.157 274.3)
XYZxyz(8.2514, 5.5576, 30.3375)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313698 #989331
analogous
#316A98 #313698 #5F3198
triadic
#313698 #983136 #369831
tetradic
#313698 #98316A #989331 #31985F
square
#313698 #98316A #989331 #31985F
split-complementary
#313698 #985F31 #6A9831
monochromatic
#13153B #22266A #313698 #444AC3 #7277D2

Accessibility & contrast

On white

9.95
#313698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313698
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313698#FFFFFF#000000##FFFFFF
##3136981.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313698;
/* rgb */ color: rgb(49, 54, 152);
/* oklch */ color: oklch(39.4% 0.157 274.3);
Tailwind
colors: {
  custom: {
    50: '#776db7',
    500: '#313698',
    950: '#000000',
  },
}
SCSS
$custom: #313698;
$custom-light: #776db7;
$custom-dark: #000000;
JSON
{
  "hex": "#313698",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 152
  },
  "hsl": {
    "h": 237.087,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39403,
    "c": 0.15708,
    "h": 274.3
  },
  "luminance": 0.05558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313698

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

Preview Lab → · Contrast checker → · Palette generator →

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