#313F86#313F86

#313F86 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.7% C 0.119 H 271.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#313F86
RGBrgb(49, 63, 134)
HSLhsl(230, 46%, 36%)
HSVhsv(230, 63%, 53%)
CMYKcmyk(63.4%, 53%, 0%, 47.5%)
CIE-LABlab(29.23, 18.02, -41.65)
CIE-LCHlch(29.23, 45.38, 293.39°)
OKLaboklab(39.67% 0.0032 -0.1193)
OKLCHoklch(39.67% 0.119 271.5)
XYZxyz(7.3458, 5.9286, 23.3069)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F86 #867831
analogous
#316986 #313F86 #4D3186
triadic
#313F86 #86313F #3F8631
tetradic
#313F86 #863169 #867831 #31864D
square
#313F86 #863169 #867831 #31864D
split-complementary
#313F86 #864D31 #698631
monochromatic
#10152C #212A59 #313F86 #4154B3 #6979C8

Accessibility & contrast

On white

9.61
#313F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#313F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F86
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F86#FFFFFF#000000##FFFFFF
##313F861.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164989
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313f86;
/* rgb */ color: rgb(49, 63, 134);
/* oklch */ color: oklch(39.7% 0.119 271.5);
Tailwind
colors: {
  custom: {
    50: '#7273aa',
    500: '#313f86',
    950: '#000000',
  },
}
SCSS
$custom: #313f86;
$custom-light: #7273aa;
$custom-dark: #000000;
JSON
{
  "hex": "#313f86",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 134
  },
  "hsl": {
    "h": 230.118,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39673,
    "c": 0.11939,
    "h": 271.5
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#313F86
secondary
#B0A363
accent
#C052D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #313F86

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

Preview Lab → · Contrast checker → · Palette generator →

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