#313394#313394

#313394 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.155 H 275.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#313394
RGBrgb(49, 51, 148)
HSLhsl(239, 50%, 39%)
HSVhsv(239, 67%, 58%)
CMYKcmyk(66.9%, 65.5%, 0%, 42%)
CIE-LABlab(27.18, 31.10, -53.63)
CIE-LCHlch(27.18, 62.00, 300.11°)
OKLaboklab(38.5% 0.0146 -0.1547)
OKLCHoklch(38.5% 0.155 275.4)
XYZxyz(7.7940, 5.1581, 28.5961)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313394 #949231
analogous
#316494 #313394 #603194
triadic
#313394 #943133 #339431
tetradic
#313394 #943164 #949231 #319460
square
#313394 #943164 #949231 #319460
split-complementary
#313394 #946031 #649431
monochromatic
#131338 #222366 #313394 #4244C0 #7072D0

Accessibility & contrast

On white

10.34
#313394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313394
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313394#FFFFFF#000000##FFFFFF
##3133941.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#003C92
Tritanopia (blue-blind)
#004C5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313394;
/* rgb */ color: rgb(49, 51, 148);
/* oklch */ color: oklch(38.5% 0.155 275.4);
Tailwind
colors: {
  custom: {
    50: '#766bb4',
    500: '#313394',
    950: '#000000',
  },
}
SCSS
$custom: #313394;
$custom-light: #766bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#313394",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 148
  },
  "hsl": {
    "h": 238.788,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38499,
    "c": 0.15536,
    "h": 275.4
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#313394
secondary
#B7B669
accent
#D74EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313394

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

Preview Lab → · Contrast checker → · Palette generator →

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