#313196#313196

#313196 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.161 H 275.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#313196
RGBrgb(49, 49, 150)
HSLhsl(240, 51%, 39%)
HSVhsv(240, 67%, 59%)
CMYKcmyk(67.3%, 67.3%, 0%, 41.2%)
CIE-LABlab(26.88, 33.09, -55.35)
CIE-LCHlch(26.88, 64.49, 300.87°)
OKLaboklab(38.34% 0.016 -0.1597)
OKLCHoklch(38.34% 0.161 275.7)
XYZxyz(7.8681, 5.0509, 29.4085)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313196 #969631
analogous
#316496 #313196 #643196
triadic
#313196 #963131 #319631
tetradic
#313196 #963164 #969631 #319664
square
#313196 #963164 #969631 #319664
split-complementary
#313196 #966431 #649631
monochromatic
#13133A #222268 #313196 #4343C1 #7171D1

Accessibility & contrast

On white

10.45
#313196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313196
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313196#FFFFFF#000000##FFFFFF
##3131961.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313196;
/* rgb */ color: rgb(49, 49, 150);
/* oklch */ color: oklch(38.3% 0.161 275.7);
Tailwind
colors: {
  custom: {
    50: '#7769b6',
    500: '#313196',
    950: '#000000',
  },
}
SCSS
$custom: #313196;
$custom-light: #7769b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313196",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.16052,
    "h": 275.7
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

primary
#313196
secondary
#B8B86A
accent
#DA4EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313196

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

Preview Lab → · Contrast checker → · Palette generator →

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