#313389#313389

#313389 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.140 H 276.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#313389
RGBrgb(49, 51, 137)
HSLhsl(239, 47%, 36%)
HSVhsv(239, 64%, 54%)
CMYKcmyk(64.2%, 62.8%, 0%, 46.3%)
CIE-LABlab(26.23, 27.18, -48.38)
CIE-LCHlch(26.23, 55.49, 299.33°)
OKLaboklab(37.51% 0.0153 -0.1393)
OKLCHoklch(37.51% 0.14 276.3)
XYZxyz(6.9643, 4.8262, 24.2266)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313389 #898731
analogous
#315F89 #313389 #5B3189
triadic
#313389 #893133 #338931
tetradic
#313389 #89315F #898731 #31895B
square
#313389 #89315F #898731 #31895B
split-complementary
#313389 #895B31 #5F8931
monochromatic
#11112F #21225C #313389 #4144B6 #6B6DCA

Accessibility & contrast

On white

10.68
#313389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#313389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313389
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313389#FFFFFF#000000##FFFFFF
##3133891.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313389;
/* rgb */ color: rgb(49, 51, 137);
/* oklch */ color: oklch(37.5% 0.140 276.3);
Tailwind
colors: {
  custom: {
    50: '#746bac',
    500: '#313389',
    950: '#000000',
  },
}
SCSS
$custom: #313389;
$custom-light: #746bac;
$custom-dark: #000000;
JSON
{
  "hex": "#313389",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 137
  },
  "hsl": {
    "h": 238.636,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.14009,
    "h": 276.3
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#313389
secondary
#B1B064
accent
#D451D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313389

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

Preview Lab → · Contrast checker → · Palette generator →

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