#313DB3#313DB3

#313DB3 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.185 H 271.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#313DB3
RGBrgb(49, 61, 179)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 73%, 70%)
CMYKcmyk(72.6%, 65.9%, 0%, 29.8%)
CIE-LABlab(32.36, 35.74, -63.88)
CIE-LCHlch(32.36, 73.20, 299.23°)
OKLaboklab(43.13% 0.0049 -0.1846)
OKLCHoklch(43.13% 0.185 271.5)
XYZxyz(11.0693, 7.2440, 43.4539)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DB3 #B3A731
analogous
#317EB3 #313DB3 #6631B3
triadic
#313DB3 #B3313D #3DB331
tetradic
#313DB3 #B3317E #B3A731 #31B366
square
#313DB3 #B3317E #B3A731 #31B366
split-complementary
#313DB3 #B36631 #7EB331
monochromatic
#171C53 #242D83 #313DB3 #525DD0 #828ADD

Accessibility & contrast

On white

8.57
#313DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#313DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DB3
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DB3#FFFFFF#000000##FFFFFF
##313DB31.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313db3;
/* rgb */ color: rgb(49, 61, 179);
/* oklch */ color: oklch(43.1% 0.185 271.5);
Tailwind
colors: {
  custom: {
    50: '#7c72cb',
    500: '#313db3',
    950: '#000000',
  },
}
SCSS
$custom: #313db3;
$custom-light: #7c72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#313db3",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 179
  },
  "hsl": {
    "h": 234.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4313,
    "c": 0.1847,
    "h": 271.5
  },
  "luminance": 0.07245
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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