#313CC5#313CC5

#313CC5 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.7% C 0.209 H 271.0°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#313CC5
RGBrgb(49, 60, 197)
HSLhsl(236, 60%, 48%)
HSVhsv(236, 75%, 77%)
CMYKcmyk(75.1%, 69.5%, 0%, 22.7%)
CIE-LABlab(33.80, 42.66, -72.10)
CIE-LCHlch(33.80, 83.78, 300.61°)
OKLaboklab(44.69% 0.0037 -0.2087)
OKLCHoklch(44.69% 0.209 271)
XYZxyz(12.9571, 7.9145, 53.6573)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CC5 #C5BA31
analogous
#3186C5 #313CC5 #7031C5
triadic
#313CC5 #C5313C #3CC531
tetradic
#313CC5 #C53186 #C5BA31 #31C570
square
#313CC5 #C53186 #C5BA31 #31C570
split-complementary
#313CC5 #C57031 #86C531
monochromatic
#191E63 #252D94 #313CC5 #5D66D7 #8E94E3

Accessibility & contrast

On white

8.13
#313CC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#313CC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CC5
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CC5#FFFFFF#000000##FFFFFF
##313CC51.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313cc5;
/* rgb */ color: rgb(49, 60, 197);
/* oklch */ color: oklch(44.7% 0.209 271.0);
Tailwind
colors: {
  custom: {
    50: '#8072d8',
    500: '#313cc5',
    950: '#000000',
  },
}
SCSS
$custom: #313cc5;
$custom-light: #8072d8;
$custom-dark: #000000;
JSON
{
  "hex": "#313cc5",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 197
  },
  "hsl": {
    "h": 235.541,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4469,
    "c": 0.20871,
    "h": 271
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#313CC5
secondary
#CDC885
accent
#D844E3
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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