#313BC5#313BC5

#313BC5 is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.5% C 0.210 H 271.2°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#313BC5
RGBrgb(49, 59, 197)
HSLhsl(236, 60%, 48%)
HSVhsv(236, 75%, 77%)
CMYKcmyk(75.1%, 70.1%, 0%, 22.7%)
CIE-LABlab(33.59, 43.26, -72.47)
CIE-LCHlch(33.59, 84.39, 300.83°)
OKLaboklab(44.53% 0.0042 -0.2097)
OKLCHoklch(44.53% 0.21 271.2)
XYZxyz(12.9052, 7.8107, 53.6400)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BC5 #C5BB31
analogous
#3185C5 #313BC5 #7131C5
triadic
#313BC5 #C5313B #3BC531
tetradic
#313BC5 #C53185 #C5BB31 #31C571
square
#313BC5 #C53185 #C5BB31 #31C571
split-complementary
#313BC5 #C57131 #85C531
monochromatic
#191E63 #252C94 #313BC5 #5D65D7 #8E93E3

Accessibility & contrast

On white

8.20
#313BC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#313BC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BC5
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BC5#FFFFFF#000000##FFFFFF
##313BC51.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0048C2
Tritanopia (blue-blind)
#00617C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #313bc5;
/* rgb */ color: rgb(49, 59, 197);
/* oklch */ color: oklch(44.5% 0.210 271.2);
Tailwind
colors: {
  custom: {
    50: '#8072d8',
    500: '#313bc5',
    950: '#000000',
  },
}
SCSS
$custom: #313bc5;
$custom-light: #8072d8;
$custom-dark: #000000;
JSON
{
  "hex": "#313bc5",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 197
  },
  "hsl": {
    "h": 235.946,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44533,
    "c": 0.20977,
    "h": 271.2
  },
  "luminance": 0.07812
}

Semantic roles & 50–950 ramp

primary
#313BC5
secondary
#CDC885
accent
#D944E3
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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