#313CB9#313CB9

#313CB9 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.5% C 0.194 H 271.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#313CB9
RGBrgb(49, 60, 185)
HSLhsl(235, 58%, 46%)
HSVhsv(235, 74%, 73%)
CMYKcmyk(73.5%, 67.6%, 0%, 27.5%)
CIE-LABlab(32.67, 38.49, -66.92)
CIE-LCHlch(32.67, 77.19, 299.91°)
OKLaboklab(43.53% 0.005 -0.1935)
OKLCHoklch(43.53% 0.194 271.5)
XYZxyz(11.6365, 7.3863, 46.7020)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CB9 #B9AE31
analogous
#3180B9 #313CB9 #6A31B9
triadic
#313CB9 #B9313C #3CB931
tetradic
#313CB9 #B93180 #B9AE31 #31B96A
square
#313CB9 #B93180 #B9AE31 #31B96A
split-complementary
#313CB9 #B96A31 #80B931
monochromatic
#171D58 #242C89 #313CB9 #555FD2 #868DDF

Accessibility & contrast

On white

8.48
#313CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#313CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CB9
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CB9#FFFFFF#000000##FFFFFF
##313CB91.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BD
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313cb9;
/* rgb */ color: rgb(49, 60, 185);
/* oklch */ color: oklch(43.5% 0.194 271.5);
Tailwind
colors: {
  custom: {
    50: '#7d72cf',
    500: '#313cb9',
    950: '#000000',
  },
}
SCSS
$custom: #313cb9;
$custom-light: #7d72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#313cb9",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 185
  },
  "hsl": {
    "h": 235.147,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43526,
    "c": 0.19359,
    "h": 271.5
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#313CB9
secondary
#C8C27D
accent
#D546E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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