#313CB0#313CB0

#313CB0 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.182 H 271.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#313CB0
RGBrgb(49, 60, 176)
HSLhsl(235, 56%, 44%)
HSVhsv(235, 72%, 69%)
CMYKcmyk(72.2%, 65.9%, 0%, 31%)
CIE-LABlab(31.85, 35.31, -62.92)
CIE-LCHlch(31.85, 72.15, 299.30°)
OKLaboklab(42.68% 0.0058 -0.1819)
OKLCHoklch(42.68% 0.182 271.8)
XYZxyz(10.7163, 7.0182, 41.8558)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CB0 #B0A531
analogous
#317CB0 #313CB0 #6631B0
triadic
#313CB0 #B0313C #3CB031
tetradic
#313CB0 #B0317C #B0A531 #31B066
square
#313CB0 #B0317C #B0A531 #31B066
split-complementary
#313CB0 #B06631 #7CB031
monochromatic
#161B50 #242C80 #313CB0 #505BCE #8088DC

Accessibility & contrast

On white

8.74
#313CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#313CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CB0
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CB0#FFFFFF#000000##FFFFFF
##313CB01.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313cb0;
/* rgb */ color: rgb(49, 60, 176);
/* oklch */ color: oklch(42.7% 0.182 271.8);
Tailwind
colors: {
  custom: {
    50: '#7b72c9',
    500: '#313cb0',
    950: '#000000',
  },
}
SCSS
$custom: #313cb0;
$custom-light: #7b72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313cb0",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 176
  },
  "hsl": {
    "h": 234.803,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42676,
    "c": 0.18195,
    "h": 271.8
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#313CB0
secondary
#C5BE78
accent
#D348E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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