#313DB6#313DB6

#313DB6 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.189 H 271.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#313DB6
RGBrgb(49, 61, 182)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.1%, 66.5%, 0%, 28.6%)
CIE-LABlab(32.63, 36.81, -65.21)
CIE-LCHlch(32.63, 74.88, 299.44°)
OKLaboklab(43.41% 0.0047 -0.1885)
OKLCHoklch(43.41% 0.189 271.4)
XYZxyz(11.3760, 7.3667, 45.0693)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB6 #B6AA31
analogous
#3180B6 #313DB6 #6731B6
triadic
#313DB6 #B6313D #3DB631
tetradic
#313DB6 #B63180 #B6AA31 #31B667
square
#313DB6 #B63180 #B6AA31 #31B667
split-complementary
#313DB6 #B66731 #80B631
monochromatic
#171D56 #242D86 #313DB6 #535FD1 #848CDE

Accessibility & contrast

On white

8.49
#313DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#313DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB6
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB6#FFFFFF#000000##FFFFFF
##313DB61.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313db6;
/* rgb */ color: rgb(49, 61, 182);
/* oklch */ color: oklch(43.4% 0.189 271.4);
Tailwind
colors: {
  custom: {
    50: '#7d73cd',
    500: '#313db6',
    950: '#000000',
  },
}
SCSS
$custom: #313db6;
$custom-light: #7d73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#313db6",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 182
  },
  "hsl": {
    "h": 234.586,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43411,
    "c": 0.1886,
    "h": 271.4
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

primary
#313DB6
secondary
#C7C07C
accent
#D347E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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