#313689#313689

#313689 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.136 H 275.3°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#313689
RGBrgb(49, 54, 137)
HSLhsl(237, 47%, 36%)
HSVhsv(237, 64%, 54%)
CMYKcmyk(64.2%, 60.6%, 0%, 46.3%)
CIE-LABlab(27.01, 25.19, -47.11)
CIE-LCHlch(27.01, 53.42, 298.13°)
OKLaboklab(38.08% 0.0125 -0.1355)
OKLCHoklch(38.08% 0.136 275.3)
XYZxyz(7.0997, 5.0969, 24.2717)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313689 #898431
analogous
#316289 #313689 #583189
triadic
#313689 #893136 #368931
tetradic
#313689 #893162 #898431 #318958
square
#313689 #893162 #898431 #318958
split-complementary
#313689 #895831 #628931
monochromatic
#11122F #21245C #313689 #4148B6 #6B70CA

Accessibility & contrast

On white

10.40
#313689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313689
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313689#FFFFFF#000000##FFFFFF
##3136891.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313689;
/* rgb */ color: rgb(49, 54, 137);
/* oklch */ color: oklch(38.1% 0.136 275.3);
Tailwind
colors: {
  custom: {
    50: '#736dac',
    500: '#313689',
    950: '#000000',
  },
}
SCSS
$custom: #313689;
$custom-light: #736dac;
$custom-dark: #000000;
JSON
{
  "hex": "#313689",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 137
  },
  "hsl": {
    "h": 236.591,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38083,
    "c": 0.13608,
    "h": 275.3
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#313689
secondary
#B1AD64
accent
#CF51D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313689

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

Preview Lab → · Contrast checker → · Palette generator →

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