#313189#313189

#313189 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.143 H 276.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#313189
RGBrgb(49, 49, 137)
HSLhsl(240, 47%, 36%)
HSVhsv(240, 64%, 54%)
CMYKcmyk(64.2%, 64.2%, 0%, 46.3%)
CIE-LABlab(25.73, 28.50, -49.20)
CIE-LCHlch(25.73, 56.86, 300.08°)
OKLaboklab(37.14% 0.0171 -0.1417)
OKLCHoklch(37.14% 0.143 276.9)
XYZxyz(6.8788, 4.6552, 24.1981)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313189 #898931
analogous
#315D89 #313189 #5D3189
triadic
#313189 #893131 #318931
tetradic
#313189 #89315D #898931 #31895D
square
#313189 #89315D #898931 #31895D
split-complementary
#313189 #895D31 #5D8931
monochromatic
#11112F #21215C #313189 #4141B6 #6B6BCA

Accessibility & contrast

On white

10.87
#313189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313189
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313189#FFFFFF#000000##FFFFFF
##3131891.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313189;
/* rgb */ color: rgb(49, 49, 137);
/* oklch */ color: oklch(37.1% 0.143 276.9);
Tailwind
colors: {
  custom: {
    50: '#7469ac',
    500: '#313189',
    950: '#000000',
  },
}
SCSS
$custom: #313189;
$custom-light: #7469ac;
$custom-dark: #000000;
JSON
{
  "hex": "#313189",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 137
  },
  "hsl": {
    "h": 240,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37139,
    "c": 0.14271,
    "h": 276.9
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#313189
secondary
#B1B164
accent
#D751D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313189

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

Preview Lab → · Contrast checker → · Palette generator →

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