#313688#313688

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

Color values

HEX#313688
RGBrgb(49, 54, 136)
HSLhsl(237, 47%, 36%)
HSVhsv(237, 64%, 53%)
CMYKcmyk(64%, 60.3%, 0%, 46.7%)
CIE-LABlab(26.93, 24.83, -46.62)
CIE-LCHlch(26.93, 52.82, 298.04°)
OKLaboklab(38% 0.0125 -0.1341)
OKLCHoklch(38% 0.135 275.3)
XYZxyz(7.0283, 5.0683, 23.8957)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313688 #888331
analogous
#316288 #313688 #583188
triadic
#313688 #883136 #368831
tetradic
#313688 #883162 #888331 #318858
square
#313688 #883162 #888331 #318858
split-complementary
#313688 #885831 #628831
monochromatic
#11122E #21245B #313688 #4148B5 #6A70C9

Accessibility & contrast

On white

10.43
#313688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313688
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313688#FFFFFF#000000##FFFFFF
##3136881.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313688;
/* rgb */ color: rgb(49, 54, 136);
/* oklch */ color: oklch(38.0% 0.135 275.3);
Tailwind
colors: {
  custom: {
    50: '#736dab',
    500: '#313688',
    950: '#000000',
  },
}
SCSS
$custom: #313688;
$custom-light: #736dab;
$custom-dark: #000000;
JSON
{
  "hex": "#313688",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 136
  },
  "hsl": {
    "h": 236.552,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37998,
    "c": 0.13465,
    "h": 275.3
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313688

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

Preview Lab → · Contrast checker → · Palette generator →

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