#313CAC#313CAC

#313CAC is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.177 H 272.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#313CAC
RGBrgb(49, 60, 172)
HSLhsl(235, 56%, 43%)
HSVhsv(235, 72%, 67%)
CMYKcmyk(71.5%, 65.1%, 0%, 32.5%)
CIE-LABlab(31.49, 33.88, -61.12)
CIE-LCHlch(31.49, 69.88, 299.00°)
OKLaboklab(42.31% 0.0061 -0.1766)
OKLCHoklch(42.31% 0.177 272)
XYZxyz(10.3264, 6.8622, 39.8021)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CAC #ACA131
analogous
#3179AC #313CAC #6331AC
triadic
#313CAC #AC313C #3CAC31
tetradic
#313CAC #AC3179 #ACA131 #31AC63
square
#313CAC #AC3179 #ACA131 #31AC63
split-complementary
#313CAC #AC6331 #79AC31
monochromatic
#161B4D #232B7C #313CAC #4E59CC #7D86DA

Accessibility & contrast

On white

8.85
#313CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313CAC
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CAC#FFFFFF#000000##FFFFFF
##313CAC1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313cac;
/* rgb */ color: rgb(49, 60, 172);
/* oklch */ color: oklch(42.3% 0.177 272.0);
Tailwind
colors: {
  custom: {
    50: '#7a72c6',
    500: '#313cac',
    950: '#000000',
  },
}
SCSS
$custom: #313cac;
$custom-light: #7a72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#313cac",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 172
  },
  "hsl": {
    "h": 234.634,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42306,
    "c": 0.17668,
    "h": 272
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#313CAC
secondary
#C3BC76
accent
#D249DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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