#313B86#313B86

#313B86 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.125 H 273.4°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#313B86
RGBrgb(49, 59, 134)
HSLhsl(233, 46%, 36%)
HSVhsv(233, 63%, 53%)
CMYKcmyk(63.4%, 56%, 0%, 47.5%)
CIE-LABlab(28.12, 20.73, -43.45)
CIE-LCHlch(28.12, 48.14, 295.50°)
OKLaboklab(38.84% 0.0074 -0.1247)
OKLCHoklch(38.84% 0.125 273.4)
XYZxyz(7.1322, 5.5015, 23.2357)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B86 #867C31
analogous
#316586 #313B86 #513186
triadic
#313B86 #86313B #3B8631
tetradic
#313B86 #863165 #867C31 #318651
square
#313B86 #863165 #867C31 #318651
split-complementary
#313B86 #865131 #658631
monochromatic
#10142C #212759 #313B86 #414FB3 #6974C8

Accessibility & contrast

On white

10.00
#313B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B86
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B86#FFFFFF#000000##FFFFFF
##313B861.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064689
Deuteranopia (green-blind)
#003F84
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313b86;
/* rgb */ color: rgb(49, 59, 134);
/* oklch */ color: oklch(38.8% 0.125 273.4);
Tailwind
colors: {
  custom: {
    50: '#7270aa',
    500: '#313b86',
    950: '#000000',
  },
}
SCSS
$custom: #313b86;
$custom-light: #7270aa;
$custom-dark: #000000;
JSON
{
  "hex": "#313b86",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 134
  },
  "hsl": {
    "h": 232.941,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38836,
    "c": 0.1249,
    "h": 273.4
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#313B86
secondary
#B0A763
accent
#C752D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313B86

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

Preview Lab → · Contrast checker → · Palette generator →

#313B86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva