#313593#313593

#313593 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.151 H 274.9°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#313593
RGBrgb(49, 53, 147)
HSLhsl(238, 50%, 38%)
HSVhsv(238, 67%, 58%)
CMYKcmyk(66.7%, 63.9%, 0%, 42.4%)
CIE-LABlab(27.59, 29.45, -52.35)
CIE-LCHlch(27.59, 60.07, 299.36°)
OKLaboklab(38.77% 0.013 -0.1509)
OKLCHoklch(38.77% 0.151 274.9)
XYZxyz(7.8045, 5.3051, 28.2108)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313593 #938F31
analogous
#316693 #313593 #5E3193
triadic
#313593 #933135 #359331
tetradic
#313593 #933166 #938F31 #31935E
square
#313593 #933166 #938F31 #31935E
split-complementary
#313593 #935E31 #669331
monochromatic
#121437 #222465 #313593 #4147C0 #6F73CF

Accessibility & contrast

On white

10.19
#313593 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313593 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313593
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313593#FFFFFF#000000##FFFFFF
##3135931.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#003D91
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313593;
/* rgb */ color: rgb(49, 53, 147);
/* oklch */ color: oklch(38.8% 0.151 274.9);
Tailwind
colors: {
  custom: {
    50: '#766cb4',
    500: '#313593',
    950: '#000000',
  },
}
SCSS
$custom: #313593;
$custom-light: #766cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#313593",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 147
  },
  "hsl": {
    "h": 237.551,
    "s": 50,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.15147,
    "h": 274.9
  },
  "luminance": 0.05306
}

Semantic roles & 50–950 ramp

primary
#313593
secondary
#B7B469
accent
#D44EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313593

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

Preview Lab → · Contrast checker → · Palette generator →

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