#313FB5#313FB5

#313FB5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.7% C 0.185 H 271.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#313FB5
RGBrgb(49, 63, 181)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(72.9%, 65.2%, 0%, 29%)
CIE-LABlab(33.01, 35.19, -63.99)
CIE-LCHlch(33.01, 73.03, 298.81°)
OKLaboklab(43.66% 0.0035 -0.1849)
OKLCHoklch(43.66% 0.185 271.1)
XYZxyz(11.3818, 7.5430, 44.5632)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FB5 #B5A731
analogous
#3181B5 #313FB5 #6531B5
triadic
#313FB5 #B5313F #3FB531
tetradic
#313FB5 #B53181 #B5A731 #31B565
square
#313FB5 #B53181 #B5A731 #31B565
split-complementary
#313FB5 #B56531 #81B531
monochromatic
#171D55 #242E85 #313FB5 #5360D0 #838DDD

Accessibility & contrast

On white

8.37
#313FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#313FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FB5
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FB5#FFFFFF#000000##FFFFFF
##313FB51.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #313fb5;
/* rgb */ color: rgb(49, 63, 181);
/* oklch */ color: oklch(43.7% 0.185 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c74cc',
    500: '#313fb5',
    950: '#000000',
  },
}
SCSS
$custom: #313fb5;
$custom-light: #7c74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313fb5",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 233.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43664,
    "c": 0.18498,
    "h": 271.1
  },
  "luminance": 0.07544
}

Semantic roles & 50–950 ramp

primary
#313FB5
secondary
#C7BF7B
accent
#D047E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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