#313CB1#313CB1

#313CB1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.183 H 271.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#313CB1
RGBrgb(49, 60, 177)
HSLhsl(235, 57%, 44%)
HSVhsv(235, 72%, 69%)
CMYKcmyk(72.3%, 66.1%, 0%, 30.6%)
CIE-LABlab(31.94, 35.66, -63.37)
CIE-LCHlch(31.94, 72.72, 299.37°)
OKLaboklab(42.77% 0.0057 -0.1832)
OKLCHoklch(42.77% 0.183 271.8)
XYZxyz(10.8156, 7.0579, 42.3788)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CB1 #B1A631
analogous
#317CB1 #313CB1 #6631B1
triadic
#313CB1 #B1313C #3CB131
tetradic
#313CB1 #B1317C #B1A631 #31B166
square
#313CB1 #B1317C #B1A631 #31B166
split-complementary
#313CB1 #B16631 #7CB131
monochromatic
#161C51 #242C81 #313CB1 #515BCF #8088DC

Accessibility & contrast

On white

8.71
#313CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#313CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CB1
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CB1#FFFFFF#000000##FFFFFF
##313CB11.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313cb1;
/* rgb */ color: rgb(49, 60, 177);
/* oklch */ color: oklch(42.8% 0.183 271.8);
Tailwind
colors: {
  custom: {
    50: '#7c72c9',
    500: '#313cb1',
    950: '#000000',
  },
}
SCSS
$custom: #313cb1;
$custom-light: #7c72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313cb1",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 177
  },
  "hsl": {
    "h": 234.844,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4277,
    "c": 0.18326,
    "h": 271.8
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#313CB1
secondary
#C5BE79
accent
#D348E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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