#313997#313997

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

Color values

HEX#313997
RGBrgb(49, 57, 151)
HSLhsl(235, 51%, 39%)
HSVhsv(235, 68%, 59%)
CMYKcmyk(67.5%, 62.3%, 0%, 40.8%)
CIE-LABlab(28.94, 28.26, -52.60)
CIE-LCHlch(28.94, 59.72, 298.25°)
OKLaboklab(39.87% 0.0094 -0.1516)
OKLCHoklch(39.87% 0.152 273.6)
XYZxyz(8.3138, 5.8128, 29.9560)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313997 #978F31
analogous
#316C97 #313997 #5C3197
triadic
#313997 #973139 #399731
tetradic
#313997 #97316C #978F31 #31975C
square
#313997 #97316C #978F31 #31975C
split-complementary
#313997 #975C31 #6C9731
monochromatic
#13163B #222869 #313997 #434DC2 #7179D1

Accessibility & contrast

On white

9.71
#313997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313997
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313997#FFFFFF#000000##FFFFFF
##3139971.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313997;
/* rgb */ color: rgb(49, 57, 151);
/* oklch */ color: oklch(39.9% 0.152 273.6);
Tailwind
colors: {
  custom: {
    50: '#766fb6',
    500: '#313997',
    950: '#000000',
  },
}
SCSS
$custom: #313997;
$custom-light: #766fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313997",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 235.294,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39867,
    "c": 0.15191,
    "h": 273.6
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#313997
secondary
#B9B36B
accent
#CF4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313997

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

Preview Lab → · Contrast checker → · Palette generator →

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