#313286#313286

#313286 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.137 H 276.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#313286
RGBrgb(49, 50, 134)
HSLhsl(239, 46%, 36%)
HSVhsv(239, 63%, 53%)
CMYKcmyk(63.4%, 62.7%, 0%, 47.5%)
CIE-LABlab(25.73, 26.77, -47.33)
CIE-LCHlch(25.73, 54.38, 299.50°)
OKLaboklab(37.06% 0.0164 -0.1362)
OKLCHoklch(37.06% 0.137 276.9)
XYZxyz(6.7089, 4.6549, 23.0946)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313286 #868531
analogous
#315C86 #313286 #5A3186
triadic
#313286 #863132 #328631
tetradic
#313286 #86315C #868531 #31865A
square
#313286 #86315C #868531 #31865A
split-complementary
#313286 #865A31 #5C8631
monochromatic
#10112C #212159 #313286 #4143B3 #696AC8

Accessibility & contrast

On white

10.88
#313286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313286
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313286#FFFFFF#000000##FFFFFF
##3132861.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313286;
/* rgb */ color: rgb(49, 50, 134);
/* oklch */ color: oklch(37.1% 0.137 276.9);
Tailwind
colors: {
  custom: {
    50: '#736aaa',
    500: '#313286',
    950: '#000000',
  },
}
SCSS
$custom: #313286;
$custom-light: #736aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#313286",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 239.294,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37059,
    "c": 0.13716,
    "h": 276.9
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#313286
secondary
#B0AF63
accent
#D552D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313286

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

Preview Lab → · Contrast checker → · Palette generator →

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