#313CC2#313CC2

#313CC2 is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.4% C 0.205 H 271.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#313CC2
RGBrgb(49, 60, 194)
HSLhsl(235, 60%, 48%)
HSVhsv(235, 75%, 76%)
CMYKcmyk(74.7%, 69.1%, 0%, 23.9%)
CIE-LABlab(33.52, 41.62, -70.82)
CIE-LCHlch(33.52, 82.15, 300.44°)
OKLaboklab(44.4% 0.0041 -0.2049)
OKLCHoklch(44.4% 0.205 271.1)
XYZxyz(12.6168, 7.7784, 51.8649)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CC2 #C2B731
analogous
#3185C2 #313CC2 #6E31C2
triadic
#313CC2 #C2313C #3CC231
tetradic
#313CC2 #C23185 #C2B731 #31C26E
square
#313CC2 #C23185 #C2B731 #31C26E
split-complementary
#313CC2 #C26E31 #85C231
monochromatic
#181E60 #252D91 #313CC2 #5B64D6 #8C92E2

Accessibility & contrast

On white

8.22
#313CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313CC2
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CC2#FFFFFF#000000##FFFFFF
##313CC21.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0048C0
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #313cc2;
/* rgb */ color: rgb(49, 60, 194);
/* oklch */ color: oklch(44.4% 0.205 271.1);
Tailwind
colors: {
  custom: {
    50: '#8072d6',
    500: '#313cc2',
    950: '#000000',
  },
}
SCSS
$custom: #313cc2;
$custom-light: #8072d6;
$custom-dark: #000000;
JSON
{
  "hex": "#313cc2",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 194
  },
  "hsl": {
    "h": 235.448,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44396,
    "c": 0.20498,
    "h": 271.1
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#313CC2
secondary
#CCC683
accent
#D745E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #313CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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