#313CB2#313CB2

#313CB2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.185 H 271.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#313CB2
RGBrgb(49, 60, 178)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 72%, 70%)
CMYKcmyk(72.5%, 66.3%, 0%, 30.2%)
CIE-LABlab(32.03, 36.02, -63.82)
CIE-LCHlch(32.03, 73.28, 299.44°)
OKLaboklab(42.86% 0.0056 -0.1845)
OKLCHoklch(42.86% 0.185 271.7)
XYZxyz(10.9156, 7.0979, 42.9056)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CB2 #B2A731
analogous
#317CB2 #313CB2 #6731B2
triadic
#313CB2 #B2313C #3CB231
tetradic
#313CB2 #B2317C #B2A731 #31B267
square
#313CB2 #B2317C #B2A731 #31B267
split-complementary
#313CB2 #B26731 #7CB231
monochromatic
#171C52 #242C82 #313CB2 #515CCF #8189DC

Accessibility & contrast

On white

8.68
#313CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#313CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CB2
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CB2#FFFFFF#000000##FFFFFF
##313CB21.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313cb2;
/* rgb */ color: rgb(49, 60, 178);
/* oklch */ color: oklch(42.9% 0.185 271.7);
Tailwind
colors: {
  custom: {
    50: '#7c72ca',
    500: '#313cb2',
    950: '#000000',
  },
}
SCSS
$custom: #313cb2;
$custom-light: #7c72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#313cb2",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 234.884,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42863,
    "c": 0.18456,
    "h": 271.7
  },
  "luminance": 0.07099
}

Semantic roles & 50–950 ramp

primary
#313CB2
secondary
#C5BF79
accent
#D348E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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