#313794#313794

#313794 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.150 H 274.3°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#313794
RGBrgb(49, 55, 148)
HSLhsl(236, 50%, 39%)
HSVhsv(236, 67%, 58%)
CMYKcmyk(66.9%, 62.8%, 0%, 42%)
CIE-LABlab(28.18, 28.50, -52.01)
CIE-LCHlch(28.18, 59.30, 298.72°)
OKLaboklab(39.23% 0.0113 -0.1499)
OKLCHoklch(39.23% 0.15 274.3)
XYZxyz(7.9763, 5.5228, 28.6569)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313794 #948E31
analogous
#316894 #313794 #5C3194
triadic
#313794 #943137 #379431
tetradic
#313794 #943168 #948E31 #31945C
square
#313794 #943168 #948E31 #31945C
split-complementary
#313794 #945C31 #689431
monochromatic
#131538 #222666 #313794 #4249C0 #7076D0

Accessibility & contrast

On white

9.98
#313794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313794
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313794#FFFFFF#000000##FFFFFF
##3137941.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313794;
/* rgb */ color: rgb(49, 55, 148);
/* oklch */ color: oklch(39.2% 0.150 274.3);
Tailwind
colors: {
  custom: {
    50: '#766eb4',
    500: '#313794',
    950: '#000000',
  },
}
SCSS
$custom: #313794;
$custom-light: #766eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#313794",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 236.364,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39228,
    "c": 0.1503,
    "h": 274.3
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#313794
secondary
#B7B369
accent
#D14EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313794

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

Preview Lab → · Contrast checker → · Palette generator →

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