#313994#313994

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

Color values

HEX#313994
RGBrgb(49, 57, 148)
HSLhsl(235, 50%, 39%)
HSVhsv(235, 67%, 58%)
CMYKcmyk(66.9%, 61.5%, 0%, 42%)
CIE-LABlab(28.69, 27.18, -51.17)
CIE-LCHlch(28.69, 57.94, 297.97°)
OKLaboklab(39.61% 0.0095 -0.1474)
OKLCHoklch(39.61% 0.148 273.7)
XYZxyz(8.0733, 5.7166, 28.6892)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313994 #948C31
analogous
#316A94 #313994 #5A3194
triadic
#313994 #943139 #399431
tetradic
#313994 #94316A #948C31 #31945A
square
#313994 #94316A #948C31 #31945A
split-complementary
#313994 #945A31 #6A9431
monochromatic
#131638 #222766 #313994 #424CC0 #7078D0

Accessibility & contrast

On white

9.80
#313994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313994
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313994#FFFFFF#000000##FFFFFF
##3139941.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313994;
/* rgb */ color: rgb(49, 57, 148);
/* oklch */ color: oklch(39.6% 0.148 273.7);
Tailwind
colors: {
  custom: {
    50: '#756fb4',
    500: '#313994',
    950: '#000000',
  },
}
SCSS
$custom: #313994;
$custom-light: #756fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#313994",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 148
  },
  "hsl": {
    "h": 235.152,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39605,
    "c": 0.14772,
    "h": 273.7
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#313994
secondary
#B7B169
accent
#CE4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313994

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

Preview Lab → · Contrast checker → · Palette generator →

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