#313589#313589

#313589 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.137 H 275.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#313589
RGBrgb(49, 53, 137)
HSLhsl(237, 47%, 36%)
HSVhsv(237, 64%, 54%)
CMYKcmyk(64.2%, 61.3%, 0%, 46.3%)
CIE-LABlab(26.75, 25.86, -47.54)
CIE-LCHlch(26.75, 54.12, 298.54°)
OKLaboklab(37.89% 0.0134 -0.1368)
OKLCHoklch(37.89% 0.137 275.6)
XYZxyz(7.0536, 5.0047, 24.2564)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313589 #898531
analogous
#316189 #313589 #593189
triadic
#313589 #893135 #358931
tetradic
#313589 #893161 #898531 #318959
square
#313589 #893161 #898531 #318959
split-complementary
#313589 #895931 #618931
monochromatic
#11122F #21245C #313589 #4146B6 #6B6FCA

Accessibility & contrast

On white

10.49
#313589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313589
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313589#FFFFFF#000000##FFFFFF
##3135891.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313589;
/* rgb */ color: rgb(49, 53, 137);
/* oklch */ color: oklch(37.9% 0.137 275.6);
Tailwind
colors: {
  custom: {
    50: '#736cac',
    500: '#313589',
    950: '#000000',
  },
}
SCSS
$custom: #313589;
$custom-light: #736cac;
$custom-dark: #000000;
JSON
{
  "hex": "#313589",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 137
  },
  "hsl": {
    "h": 237.273,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3789,
    "c": 0.13743,
    "h": 275.6
  },
  "luminance": 0.05005
}

Semantic roles & 50–950 ramp

primary
#313589
secondary
#B1AE64
accent
#D151D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313589

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

Preview Lab → · Contrast checker → · Palette generator →

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