#313694#313694

#313694 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.152 H 274.6°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#313694
RGBrgb(49, 54, 148)
HSLhsl(237, 50%, 39%)
HSVhsv(237, 67%, 58%)
CMYKcmyk(66.9%, 63.5%, 0%, 42%)
CIE-LABlab(27.92, 29.15, -52.42)
CIE-LCHlch(27.92, 59.98, 299.08°)
OKLaboklab(39.04% 0.0121 -0.1511)
OKLCHoklch(39.04% 0.152 274.6)
XYZxyz(7.9293, 5.4287, 28.6412)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313694 #948F31
analogous
#316794 #313694 #5D3194
triadic
#313694 #943136 #369431
tetradic
#313694 #943167 #948F31 #31945D
square
#313694 #943167 #948F31 #31945D
split-complementary
#313694 #945D31 #679431
monochromatic
#131438 #222566 #313694 #4248C0 #7075D0

Accessibility & contrast

On white

10.07
#313694 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313694 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313694
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313694#FFFFFF#000000##FFFFFF
##3136941.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313694;
/* rgb */ color: rgb(49, 54, 148);
/* oklch */ color: oklch(39.0% 0.152 274.6);
Tailwind
colors: {
  custom: {
    50: '#766db4',
    500: '#313694',
    950: '#000000',
  },
}
SCSS
$custom: #313694;
$custom-light: #766db4;
$custom-dark: #000000;
JSON
{
  "hex": "#313694",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 148
  },
  "hsl": {
    "h": 236.97,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39042,
    "c": 0.15157,
    "h": 274.6
  },
  "luminance": 0.05429
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313694

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

Preview Lab → · Contrast checker → · Palette generator →

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