#313CB5#313CB5

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

Color values

HEX#313CB5
RGBrgb(49, 60, 181)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(72.9%, 66.9%, 0%, 29%)
CIE-LABlab(32.30, 37.08, -65.15)
CIE-LCHlch(32.30, 74.96, 299.64°)
OKLaboklab(43.15% 0.0054 -0.1884)
OKLCHoklch(43.15% 0.188 271.6)
XYZxyz(11.2201, 7.2197, 44.5093)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CB5 #B5AA31
analogous
#317EB5 #313CB5 #6831B5
triadic
#313CB5 #B5313C #3CB531
tetradic
#313CB5 #B5317E #B5AA31 #31B568
square
#313CB5 #B5317E #B5AA31 #31B568
split-complementary
#313CB5 #B56831 #7EB531
monochromatic
#171C55 #242C85 #313CB5 #535DD0 #838BDD

Accessibility & contrast

On white

8.59
#313CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#313CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CB5
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CB5#FFFFFF#000000##FFFFFF
##313CB51.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313cb5;
/* rgb */ color: rgb(49, 60, 181);
/* oklch */ color: oklch(43.1% 0.188 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d72cc',
    500: '#313cb5',
    950: '#000000',
  },
}
SCSS
$custom: #313cb5;
$custom-light: #7d72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313cb5",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 235,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43146,
    "c": 0.18846,
    "h": 271.6
  },
  "luminance": 0.07221
}

Semantic roles & 50–950 ramp

primary
#313CB5
secondary
#C7C07B
accent
#D447E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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