#313396#313396

#313396 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.158 H 275.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#313396
RGBrgb(49, 51, 150)
HSLhsl(239, 51%, 39%)
HSVhsv(239, 67%, 59%)
CMYKcmyk(67.3%, 66%, 0%, 41.2%)
CIE-LABlab(27.36, 31.81, -54.57)
CIE-LCHlch(27.36, 63.16, 300.24°)
OKLaboklab(38.68% 0.0144 -0.1574)
OKLCHoklch(38.68% 0.158 275.2)
XYZxyz(7.9537, 5.2219, 29.4370)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313396 #969431
analogous
#316696 #313396 #623196
triadic
#313396 #963133 #339631
tetradic
#313396 #963166 #969431 #319662
square
#313396 #963166 #969431 #319662
split-complementary
#313396 #966231 #669631
monochromatic
#13143A #222368 #313396 #4345C1 #7173D1

Accessibility & contrast

On white

10.27
#313396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313396
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313396#FFFFFF#000000##FFFFFF
##3133961.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313396;
/* rgb */ color: rgb(49, 51, 150);
/* oklch */ color: oklch(38.7% 0.158 275.2);
Tailwind
colors: {
  custom: {
    50: '#766bb6',
    500: '#313396',
    950: '#000000',
  },
}
SCSS
$custom: #313396;
$custom-light: #766bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313396",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 238.812,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38683,
    "c": 0.15808,
    "h": 275.2
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#313396
secondary
#B8B76A
accent
#D74EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313396

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

Preview Lab → · Contrast checker → · Palette generator →

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