#313896#313896

#313896 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.152 H 273.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#313896
RGBrgb(49, 56, 150)
HSLhsl(236, 51%, 39%)
HSVhsv(236, 67%, 59%)
CMYKcmyk(67.3%, 62.7%, 0%, 41.2%)
CIE-LABlab(28.60, 28.56, -52.54)
CIE-LCHlch(28.60, 59.80, 298.53°)
OKLaboklab(39.59% 0.0103 -0.1514)
OKLCHoklch(39.59% 0.152 273.9)
XYZxyz(8.1840, 5.6826, 29.5138)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313896 #968F31
analogous
#316B96 #313896 #5D3196
triadic
#313896 #963138 #389631
tetradic
#313896 #96316B #968F31 #31965D
square
#313896 #96316B #968F31 #31965D
split-complementary
#313896 #965D31 #6B9631
monochromatic
#13163A #222768 #313896 #434BC1 #7177D1

Accessibility & contrast

On white

9.83
#313896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313896
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313896#FFFFFF#000000##FFFFFF
##3138961.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313896;
/* rgb */ color: rgb(49, 56, 150);
/* oklch */ color: oklch(39.6% 0.152 273.9);
Tailwind
colors: {
  custom: {
    50: '#766eb6',
    500: '#313896',
    950: '#000000',
  },
}
SCSS
$custom: #313896;
$custom-light: #766eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313896",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 150
  },
  "hsl": {
    "h": 235.842,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39591,
    "c": 0.1518,
    "h": 273.9
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#313896
secondary
#B8B36A
accent
#D04EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313896

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

Preview Lab → · Contrast checker → · Palette generator →

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