#313AC5#313AC5

#313AC5 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.4% C 0.211 H 271.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#313AC5
RGBrgb(49, 58, 197)
HSLhsl(236, 60%, 48%)
HSVhsv(236, 75%, 77%)
CMYKcmyk(75.1%, 70.6%, 0%, 22.7%)
CIE-LABlab(33.37, 43.85, -72.82)
CIE-LCHlch(33.37, 85.01, 301.06°)
OKLaboklab(44.38% 0.0047 -0.2108)
OKLCHoklch(44.38% 0.211 271.3)
XYZxyz(12.8543, 7.7089, 53.6230)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AC5 #C5BC31
analogous
#3184C5 #313AC5 #7231C5
triadic
#313AC5 #C5313A #3AC531
tetradic
#313AC5 #C53184 #C5BC31 #31C572
square
#313AC5 #C53184 #C5BC31 #31C572
split-complementary
#313AC5 #C57231 #84C531
monochromatic
#191D63 #252C94 #313AC5 #5D64D7 #8E93E3

Accessibility & contrast

On white

8.26
#313AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#313AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AC5
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AC5#FFFFFF#000000##FFFFFF
##313AC51.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0047C2
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #313ac5;
/* rgb */ color: rgb(49, 58, 197);
/* oklch */ color: oklch(44.4% 0.211 271.3);
Tailwind
colors: {
  custom: {
    50: '#8071d8',
    500: '#313ac5',
    950: '#000000',
  },
}
SCSS
$custom: #313ac5;
$custom-light: #8071d8;
$custom-dark: #000000;
JSON
{
  "hex": "#313ac5",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 197
  },
  "hsl": {
    "h": 236.351,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44377,
    "c": 0.21082,
    "h": 271.3
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#313AC5
secondary
#CDC985
accent
#DA44E3
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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