#313792#313792

#313792 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.148 H 274.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#313792
RGBrgb(49, 55, 146)
HSLhsl(236, 50%, 38%)
HSVhsv(236, 66%, 57%)
CMYKcmyk(66.4%, 62.3%, 0%, 42.7%)
CIE-LABlab(28.01, 27.78, -51.05)
CIE-LCHlch(28.01, 58.12, 298.55°)
OKLaboklab(39.05% 0.0113 -0.1471)
OKLCHoklch(39.05% 0.148 274.4)
XYZxyz(7.8194, 5.4600, 27.8304)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313792 #928C31
analogous
#316792 #313792 #5B3192
triadic
#313792 #923137 #379231
tetradic
#313792 #923167 #928C31 #31925B
square
#313792 #923167 #928C31 #31925B
split-complementary
#313792 #925B31 #679231
monochromatic
#121436 #222664 #313792 #4149BF #6F75CF

Accessibility & contrast

On white

10.04
#313792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313792
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313792#FFFFFF#000000##FFFFFF
##3137921.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313792;
/* rgb */ color: rgb(49, 55, 146);
/* oklch */ color: oklch(39.1% 0.148 274.4);
Tailwind
colors: {
  custom: {
    50: '#756eb3',
    500: '#313792',
    950: '#000000',
  },
}
SCSS
$custom: #313792;
$custom-light: #756eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#313792",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 146
  },
  "hsl": {
    "h": 236.289,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39052,
    "c": 0.14751,
    "h": 274.4
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#313792
secondary
#B6B169
accent
#D14FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313792

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

Preview Lab → · Contrast checker → · Palette generator →

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