#313DB2#313DB2

#313DB2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.183 H 271.6°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#313DB2
RGBrgb(49, 61, 178)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 72%, 70%)
CMYKcmyk(72.5%, 65.7%, 0%, 30.2%)
CIE-LABlab(32.27, 35.39, -63.43)
CIE-LCHlch(32.27, 72.63, 299.16°)
OKLaboklab(43.04% 0.005 -0.1833)
OKLCHoklch(43.04% 0.183 271.6)
XYZxyz(10.9685, 7.2037, 42.9232)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB2 #B2A631
analogous
#317DB2 #313DB2 #6631B2
triadic
#313DB2 #B2313D #3DB231
tetradic
#313DB2 #B2317D #B2A631 #31B266
square
#313DB2 #B2317D #B2A631 #31B266
split-complementary
#313DB2 #B26631 #7DB231
monochromatic
#171C52 #242D82 #313DB2 #515DCF #818ADC

Accessibility & contrast

On white

8.60
#313DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#313DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB2
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB2#FFFFFF#000000##FFFFFF
##313DB21.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313db2;
/* rgb */ color: rgb(49, 61, 178);
/* oklch */ color: oklch(43.0% 0.183 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c72ca',
    500: '#313db2',
    950: '#000000',
  },
}
SCSS
$custom: #313db2;
$custom-light: #7c72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#313db2",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 234.419,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43037,
    "c": 0.1834,
    "h": 271.6
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#313DB2
secondary
#C5BE79
accent
#D248E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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