#313CC4#313CC4

#313CC4 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.6% C 0.207 H 271.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#313CC4
RGBrgb(49, 60, 196)
HSLhsl(236, 60%, 48%)
HSVhsv(236, 75%, 77%)
CMYKcmyk(75%, 69.4%, 0%, 23.1%)
CIE-LABlab(33.71, 42.31, -71.68)
CIE-LCHlch(33.71, 83.24, 300.55°)
OKLaboklab(44.59% 0.0039 -0.2074)
OKLCHoklch(44.59% 0.207 271.1)
XYZxyz(12.8429, 7.8688, 53.0558)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CC4 #C4B931
analogous
#3185C4 #313CC4 #6F31C4
triadic
#313CC4 #C4313C #3CC431
tetradic
#313CC4 #C43185 #C4B931 #31C46F
square
#313CC4 #C43185 #C4B931 #31C46F
split-complementary
#313CC4 #C46F31 #85C431
monochromatic
#191E62 #252D93 #313CC4 #5C65D6 #8D93E2

Accessibility & contrast

On white

8.16
#313CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#313CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CC4
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CC4#FFFFFF#000000##FFFFFF
##313CC41.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0048C2
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #313cc4;
/* rgb */ color: rgb(49, 60, 196);
/* oklch */ color: oklch(44.6% 0.207 271.1);
Tailwind
colors: {
  custom: {
    50: '#8072d7',
    500: '#313cc4',
    950: '#000000',
  },
}
SCSS
$custom: #313cc4;
$custom-light: #8072d7;
$custom-dark: #000000;
JSON
{
  "hex": "#313cc4",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 196
  },
  "hsl": {
    "h": 235.51,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44592,
    "c": 0.20748,
    "h": 271.1
  },
  "luminance": 0.0787
}

Semantic roles & 50–950 ramp

primary
#313CC4
secondary
#CDC784
accent
#D745E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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