#313DB8#313DB8

#313DB8 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.191 H 271.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#313DB8
RGBrgb(49, 61, 184)
HSLhsl(235, 58%, 46%)
HSVhsv(235, 73%, 72%)
CMYKcmyk(73.4%, 66.8%, 0%, 27.8%)
CIE-LABlab(32.81, 37.51, -66.10)
CIE-LCHlch(32.81, 76.00, 299.58°)
OKLaboklab(43.6% 0.0045 -0.1911)
OKLCHoklch(43.6% 0.191 271.3)
XYZxyz(11.5842, 7.4499, 46.1656)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB8 #B8AC31
analogous
#3180B8 #313DB8 #6931B8
triadic
#313DB8 #B8313D #3DB831
tetradic
#313DB8 #B83180 #B8AC31 #31B869
square
#313DB8 #B83180 #B8AC31 #31B869
split-complementary
#313DB8 #B86931 #80B831
monochromatic
#171D57 #242D88 #313DB8 #5560D2 #858DDE

Accessibility & contrast

On white

8.43
#313DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#313DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB8
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB8#FFFFFF#000000##FFFFFF
##313DB81.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313db8;
/* rgb */ color: rgb(49, 61, 184);
/* oklch */ color: oklch(43.6% 0.191 271.3);
Tailwind
colors: {
  custom: {
    50: '#7d73ce',
    500: '#313db8',
    950: '#000000',
  },
}
SCSS
$custom: #313db8;
$custom-light: #7d73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#313db8",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 184
  },
  "hsl": {
    "h": 234.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.436,
    "c": 0.19118,
    "h": 271.3
  },
  "luminance": 0.07451
}

Semantic roles & 50–950 ramp

primary
#313DB8
secondary
#C8C17D
accent
#D347E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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