#313DB4#313DB4

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

Color values

HEX#313DB4
RGBrgb(49, 61, 180)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(72.8%, 66.1%, 0%, 29.4%)
CIE-LABlab(32.45, 36.10, -64.32)
CIE-LCHlch(32.45, 73.76, 299.30°)
OKLaboklab(43.22% 0.0048 -0.1859)
OKLCHoklch(43.22% 0.186 271.5)
XYZxyz(11.1708, 7.2846, 43.9885)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB4 #B4A831
analogous
#317EB4 #313DB4 #6731B4
triadic
#313DB4 #B4313D #3DB431
tetradic
#313DB4 #B4317E #B4A831 #31B467
square
#313DB4 #B4317E #B4A831 #31B467
split-complementary
#313DB4 #B46731 #7EB431
monochromatic
#171C54 #242D84 #313DB4 #525ED0 #828BDD

Accessibility & contrast

On white

8.55
#313DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#313DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB4
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB4#FFFFFF#000000##FFFFFF
##313DB41.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313db4;
/* rgb */ color: rgb(49, 61, 180);
/* oklch */ color: oklch(43.2% 0.186 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c72cb',
    500: '#313db4',
    950: '#000000',
  },
}
SCSS
$custom: #313db4;
$custom-light: #7c72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#313db4",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 180
  },
  "hsl": {
    "h": 234.504,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43223,
    "c": 0.186,
    "h": 271.5
  },
  "luminance": 0.07286
}

Semantic roles & 50–950 ramp

primary
#313DB4
secondary
#C6BF7B
accent
#D247E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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