#313386#313386

#313386 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.136 H 276.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#313386
RGBrgb(49, 51, 134)
HSLhsl(239, 46%, 36%)
HSVhsv(239, 63%, 53%)
CMYKcmyk(63.4%, 61.9%, 0%, 47.5%)
CIE-LABlab(25.98, 26.11, -46.91)
CIE-LCHlch(25.98, 53.69, 299.10°)
OKLaboklab(37.25% 0.0154 -0.1349)
OKLCHoklch(37.25% 0.136 276.5)
XYZxyz(6.7521, 4.7413, 23.1090)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313386 #868431
analogous
#315D86 #313386 #593186
triadic
#313386 #863133 #338631
tetradic
#313386 #86315D #868431 #318659
square
#313386 #86315D #868431 #318659
split-complementary
#313386 #865931 #5D8631
monochromatic
#10112C #212259 #313386 #4144B3 #696BC8

Accessibility & contrast

On white

10.78
#313386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#313386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313386
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313386#FFFFFF#000000##FFFFFF
##3133861.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313386;
/* rgb */ color: rgb(49, 51, 134);
/* oklch */ color: oklch(37.2% 0.136 276.5);
Tailwind
colors: {
  custom: {
    50: '#736aaa',
    500: '#313386',
    950: '#000000',
  },
}
SCSS
$custom: #313386;
$custom-light: #736aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#313386",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 238.588,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37249,
    "c": 0.13582,
    "h": 276.5
  },
  "luminance": 0.04742
}

Semantic roles & 50–950 ramp

primary
#313386
secondary
#B0AE63
accent
#D352D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313386

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

Preview Lab → · Contrast checker → · Palette generator →

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