#313DB1#313DB1

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

Color values

HEX#313DB1
RGBrgb(49, 61, 177)
HSLhsl(234, 57%, 44%)
HSVhsv(234, 72%, 69%)
CMYKcmyk(72.3%, 65.5%, 0%, 30.6%)
CIE-LABlab(32.18, 35.03, -62.98)
CIE-LCHlch(32.18, 72.07, 299.08°)
OKLaboklab(42.94% 0.005 -0.182)
OKLCHoklch(42.94% 0.182 271.6)
XYZxyz(10.8685, 7.1637, 42.3964)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB1 #B1A531
analogous
#317DB1 #313DB1 #6531B1
triadic
#313DB1 #B1313D #3DB131
tetradic
#313DB1 #B1317D #B1A531 #31B165
square
#313DB1 #B1317D #B1A531 #31B165
split-complementary
#313DB1 #B16531 #7DB131
monochromatic
#161C51 #242C81 #313DB1 #515CCF #8089DC

Accessibility & contrast

On white

8.63
#313DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#313DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB1
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB1#FFFFFF#000000##FFFFFF
##313DB11.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313db1;
/* rgb */ color: rgb(49, 61, 177);
/* oklch */ color: oklch(42.9% 0.182 271.6);
Tailwind
colors: {
  custom: {
    50: '#7c72c9',
    500: '#313db1',
    950: '#000000',
  },
}
SCSS
$custom: #313db1;
$custom-light: #7c72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313db1",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 177
  },
  "hsl": {
    "h": 234.375,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42944,
    "c": 0.18209,
    "h": 271.6
  },
  "luminance": 0.07165
}

Semantic roles & 50–950 ramp

primary
#313DB1
secondary
#C5BE79
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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