#313CAB#313CAB

#313CAB is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.175 H 272.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#313CAB
RGBrgb(49, 60, 171)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 67%)
CMYKcmyk(71.3%, 64.9%, 0%, 32.9%)
CIE-LABlab(31.40, 33.52, -60.67)
CIE-LCHlch(31.40, 69.31, 298.92°)
OKLaboklab(42.21% 0.0061 -0.1752)
OKLCHoklch(42.21% 0.175 272)
XYZxyz(10.2307, 6.8239, 39.2982)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CAB #ABA031
analogous
#3179AB #313CAB #6331AB
triadic
#313CAB #AB313C #3CAB31
tetradic
#313CAB #AB3179 #ABA031 #31AB63
square
#313CAB #AB3179 #ABA031 #31AB63
split-complementary
#313CAB #AB6331 #79AB31
monochromatic
#161B4C #232B7B #313CAB #4D59CC #7D85DA

Accessibility & contrast

On white

8.88
#313CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#313CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CAB
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CAB#FFFFFF#000000##FFFFFF
##313CAB1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313cab;
/* rgb */ color: rgb(49, 60, 171);
/* oklch */ color: oklch(42.2% 0.175 272.0);
Tailwind
colors: {
  custom: {
    50: '#7a72c5',
    500: '#313cab',
    950: '#000000',
  },
}
SCSS
$custom: #313cab;
$custom-light: #7a72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#313cab",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 234.59,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42214,
    "c": 0.17536,
    "h": 272
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#313CAB
secondary
#C2BB75
accent
#D149DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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