#313CB6#313CB6

#313CB6 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.190 H 271.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#313CB6
RGBrgb(49, 60, 182)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.1%, 67%, 0%, 28.6%)
CIE-LABlab(32.39, 37.43, -65.59)
CIE-LCHlch(32.39, 75.52, 299.71°)
OKLaboklab(43.24% 0.0053 -0.1897)
OKLCHoklch(43.24% 0.19 271.6)
XYZxyz(11.3231, 7.2609, 45.0517)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CB6 #B6AB31
analogous
#317EB6 #313CB6 #6931B6
triadic
#313CB6 #B6313C #3CB631
tetradic
#313CB6 #B6317E #B6AB31 #31B669
square
#313CB6 #B6317E #B6AB31 #31B669
split-complementary
#313CB6 #B66931 #7EB631
monochromatic
#171C56 #242C86 #313CB6 #535ED1 #848BDE

Accessibility & contrast

On white

8.56
#313CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#313CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CB6
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CB6#FFFFFF#000000##FFFFFF
##313CB61.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313cb6;
/* rgb */ color: rgb(49, 60, 182);
/* oklch */ color: oklch(43.2% 0.190 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d72cd',
    500: '#313cb6',
    950: '#000000',
  },
}
SCSS
$custom: #313cb6;
$custom-light: #7d72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#313cb6",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 182
  },
  "hsl": {
    "h": 235.038,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43241,
    "c": 0.18974,
    "h": 271.6
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

primary
#313CB6
secondary
#C7C17C
accent
#D447E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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