#313CA1#313CA1

#313CA1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.162 H 272.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#313CA1
RGBrgb(49, 60, 161)
HSLhsl(234, 53%, 41%)
HSVhsv(234, 70%, 63%)
CMYKcmyk(69.6%, 62.7%, 0%, 36.9%)
CIE-LABlab(30.54, 29.92, -56.07)
CIE-LCHlch(30.54, 63.55, 298.09°)
OKLaboklab(41.31% 0.0066 -0.1618)
OKLCHoklch(41.31% 0.162 272.4)
XYZxyz(9.3133, 6.4570, 34.4668)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA1 #A19631
analogous
#3174A1 #313CA1 #5E31A1
triadic
#313CA1 #A1313C #3CA131
tetradic
#313CA1 #A13174 #A19631 #31A15E
square
#313CA1 #A13174 #A19631 #31A15E
split-complementary
#313CA1 #A15E31 #74A131
monochromatic
#141943 #232B72 #313CA1 #4854C7 #7780D6

Accessibility & contrast

On white

9.16
#313CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#313CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA1
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA1#FFFFFF#000000##FFFFFF
##313CA11.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ca1;
/* rgb */ color: rgb(49, 60, 161);
/* oklch */ color: oklch(41.3% 0.162 272.4);
Tailwind
colors: {
  custom: {
    50: '#7871be',
    500: '#313ca1',
    950: '#000000',
  },
}
SCSS
$custom: #313ca1;
$custom-light: #7871be;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca1",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 161
  },
  "hsl": {
    "h": 234.107,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4131,
    "c": 0.1619,
    "h": 272.4
  },
  "luminance": 0.06458
}

Semantic roles & 50–950 ramp

primary
#313CA1
secondary
#BEB670
accent
#CE4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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