#313DB5#313DB5

#313DB5 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.3% C 0.187 H 271.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#313DB5
RGBrgb(49, 61, 181)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(72.9%, 66.3%, 0%, 29%)
CIE-LABlab(32.54, 36.45, -64.77)
CIE-LCHlch(32.54, 74.32, 299.37°)
OKLaboklab(43.32% 0.0047 -0.1872)
OKLCHoklch(43.32% 0.187 271.5)
XYZxyz(11.2730, 7.3255, 44.5270)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB5 #B5A931
analogous
#317FB5 #313DB5 #6731B5
triadic
#313DB5 #B5313D #3DB531
tetradic
#313DB5 #B5317F #B5A931 #31B567
square
#313DB5 #B5317F #B5A931 #31B567
split-complementary
#313DB5 #B56731 #7FB531
monochromatic
#171D55 #242D85 #313DB5 #535ED0 #838BDD

Accessibility & contrast

On white

8.52
#313DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#313DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB5
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB5#FFFFFF#000000##FFFFFF
##313DB51.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313db5;
/* rgb */ color: rgb(49, 61, 181);
/* oklch */ color: oklch(43.3% 0.187 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c73cc',
    500: '#313db5',
    950: '#000000',
  },
}
SCSS
$custom: #313db5;
$custom-light: #7c73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313db5",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 234.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43317,
    "c": 0.1873,
    "h": 271.5
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#313DB5
secondary
#C7C07B
accent
#D347E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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