#313989#313989

#313989 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.132 H 274.1°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#313989
RGBrgb(49, 57, 137)
HSLhsl(235, 47%, 36%)
HSVhsv(235, 64%, 54%)
CMYKcmyk(64.2%, 58.4%, 0%, 46.3%)
CIE-LABlab(27.80, 23.18, -45.82)
CIE-LCHlch(27.80, 51.35, 296.83°)
OKLaboklab(38.67% 0.0095 -0.1317)
OKLCHoklch(38.67% 0.132 274.1)
XYZxyz(7.2436, 5.3848, 24.3197)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313989 #898131
analogous
#316589 #313989 #553189
triadic
#313989 #893139 #398931
tetradic
#313989 #893165 #898131 #318955
square
#313989 #893165 #898131 #318955
split-complementary
#313989 #895531 #658931
monochromatic
#11132F #21265C #313989 #414CB6 #6B73CA

Accessibility & contrast

On white

10.11
#313989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313989
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313989#FFFFFF#000000##FFFFFF
##3139891.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313989;
/* rgb */ color: rgb(49, 57, 137);
/* oklch */ color: oklch(38.7% 0.132 274.1);
Tailwind
colors: {
  custom: {
    50: '#736fac',
    500: '#313989',
    950: '#000000',
  },
}
SCSS
$custom: #313989;
$custom-light: #736fac;
$custom-dark: #000000;
JSON
{
  "hex": "#313989",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 137
  },
  "hsl": {
    "h": 234.545,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38673,
    "c": 0.13204,
    "h": 274.1
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#313989
secondary
#B1AA64
accent
#CB51D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313989

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

Preview Lab → · Contrast checker → · Palette generator →

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