#313391#313391

#313391 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.151 H 275.6°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#313391
RGBrgb(49, 51, 145)
HSLhsl(239, 49%, 38%)
HSVhsv(239, 66%, 57%)
CMYKcmyk(66.2%, 64.8%, 0%, 43.1%)
CIE-LABlab(26.92, 30.04, -52.21)
CIE-LCHlch(26.92, 60.24, 299.91°)
OKLaboklab(38.22% 0.0148 -0.1505)
OKLCHoklch(38.22% 0.151 275.6)
XYZxyz(7.5596, 5.0643, 27.3617)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313391 #918F31
analogous
#316391 #313391 #5F3191
triadic
#313391 #913133 #339131
tetradic
#313391 #913163 #918F31 #31915F
square
#313391 #913163 #918F31 #31915F
split-complementary
#313391 #915F31 #639131
monochromatic
#121336 #222363 #313391 #4143BF #6E70CE

Accessibility & contrast

On white

10.43
#313391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313391
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313391#FFFFFF#000000##FFFFFF
##3133911.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313391;
/* rgb */ color: rgb(49, 51, 145);
/* oklch */ color: oklch(38.2% 0.151 275.6);
Tailwind
colors: {
  custom: {
    50: '#756bb2',
    500: '#313391',
    950: '#000000',
  },
}
SCSS
$custom: #313391;
$custom-light: #756bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#313391",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 238.75,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38225,
    "c": 0.15125,
    "h": 275.6
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

primary
#313391
secondary
#B6B468
accent
#D64FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313391

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

Preview Lab → · Contrast checker → · Palette generator →

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