#313894#313894

#313894 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.149 H 274.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#313894
RGBrgb(49, 56, 148)
HSLhsl(236, 50%, 39%)
HSVhsv(236, 67%, 58%)
CMYKcmyk(66.9%, 62.2%, 0%, 42%)
CIE-LABlab(28.43, 27.84, -51.59)
CIE-LCHlch(28.43, 58.62, 298.35°)
OKLaboklab(39.42% 0.0104 -0.1486)
OKLCHoklch(39.42% 0.149 274)
XYZxyz(8.0243, 5.6187, 28.6729)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313894 #948D31
analogous
#316994 #313894 #5B3194
triadic
#313894 #943138 #389431
tetradic
#313894 #943169 #948D31 #31945B
square
#313894 #943169 #948D31 #31945B
split-complementary
#313894 #945B31 #699431
monochromatic
#131538 #222766 #313894 #424BC0 #7077D0

Accessibility & contrast

On white

9.89
#313894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313894
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313894#FFFFFF#000000##FFFFFF
##3138941.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313894;
/* rgb */ color: rgb(49, 56, 148);
/* oklch */ color: oklch(39.4% 0.149 274.0);
Tailwind
colors: {
  custom: {
    50: '#756eb4',
    500: '#313894',
    950: '#000000',
  },
}
SCSS
$custom: #313894;
$custom-light: #756eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#313894",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 148
  },
  "hsl": {
    "h": 235.758,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39415,
    "c": 0.14901,
    "h": 274
  },
  "luminance": 0.05619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313894

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

Preview Lab → · Contrast checker → · Palette generator →

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