#313CA9#313CA9

#313CA9 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.173 H 272.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#313CA9
RGBrgb(49, 60, 169)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 66%)
CMYKcmyk(71%, 64.5%, 0%, 33.7%)
CIE-LABlab(31.23, 32.80, -59.76)
CIE-LCHlch(31.23, 68.17, 298.76°)
OKLaboklab(42.03% 0.0063 -0.1726)
OKLCHoklch(42.03% 0.173 272.1)
XYZxyz(10.0415, 6.7483, 38.3018)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA9 #A99E31
analogous
#3178A9 #313CA9 #6231A9
triadic
#313CA9 #A9313C #3CA931
tetradic
#313CA9 #A93178 #A99E31 #31A962
square
#313CA9 #A93178 #A99E31 #31A962
split-complementary
#313CA9 #A96231 #78A931
monochromatic
#151A4A #232B7A #313CA9 #4C58CB #7C84D9

Accessibility & contrast

On white

8.94
#313CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#313CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA9
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA9#FFFFFF#000000##FFFFFF
##313CA91.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ca9;
/* rgb */ color: rgb(49, 60, 169);
/* oklch */ color: oklch(42.0% 0.173 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a72c4',
    500: '#313ca9',
    950: '#000000',
  },
}
SCSS
$custom: #313ca9;
$custom-light: #7a72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca9",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 169
  },
  "hsl": {
    "h": 234.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42031,
    "c": 0.17269,
    "h": 272.1
  },
  "luminance": 0.06749
}

Semantic roles & 50–950 ramp

primary
#313CA9
secondary
#C1BA74
accent
#D149DE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #313CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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