#313DB0#313DB0

#313DB0 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.181 H 271.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#313DB0
RGBrgb(49, 61, 176)
HSLhsl(234, 56%, 44%)
HSVhsv(234, 72%, 69%)
CMYKcmyk(72.2%, 65.3%, 0%, 31%)
CIE-LABlab(32.09, 34.67, -62.53)
CIE-LCHlch(32.09, 71.50, 299.01°)
OKLaboklab(42.85% 0.0051 -0.1807)
OKLCHoklch(42.85% 0.181 271.6)
XYZxyz(10.7692, 7.1240, 41.8734)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB0 #B0A431
analogous
#317DB0 #313DB0 #6531B0
triadic
#313DB0 #B0313D #3DB031
tetradic
#313DB0 #B0317D #B0A431 #31B065
square
#313DB0 #B0317D #B0A431 #31B065
split-complementary
#313DB0 #B06531 #7DB031
monochromatic
#161C50 #242C80 #313DB0 #505CCE #8088DC

Accessibility & contrast

On white

8.66
#313DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#313DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB0
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB0#FFFFFF#000000##FFFFFF
##313DB01.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313db0;
/* rgb */ color: rgb(49, 61, 176);
/* oklch */ color: oklch(42.9% 0.181 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b72c9',
    500: '#313db0',
    950: '#000000',
  },
}
SCSS
$custom: #313db0;
$custom-light: #7b72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313db0",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 176
  },
  "hsl": {
    "h": 234.331,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42851,
    "c": 0.18077,
    "h": 271.6
  },
  "luminance": 0.07125
}

Semantic roles & 50–950 ramp

primary
#313DB0
secondary
#C5BD78
accent
#D148E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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