#313CA6#313CA6

#313CA6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.169 H 272.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#313CA6
RGBrgb(49, 60, 166)
HSLhsl(234, 54%, 42%)
HSVhsv(234, 70%, 65%)
CMYKcmyk(70.5%, 63.9%, 0%, 34.9%)
CIE-LABlab(30.97, 31.73, -58.38)
CIE-LCHlch(30.97, 66.45, 298.52°)
OKLaboklab(41.76% 0.0064 -0.1685)
OKLCHoklch(41.76% 0.169 272.2)
XYZxyz(9.7631, 6.6369, 36.8355)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA6 #A69B31
analogous
#3177A6 #313CA6 #6131A6
triadic
#313CA6 #A6313C #3CA631
tetradic
#313CA6 #A63177 #A69B31 #31A661
square
#313CA6 #A63177 #A69B31 #31A661
split-complementary
#313CA6 #A66131 #77A631
monochromatic
#151A47 #232B77 #313CA6 #4A56CA #7A83D8

Accessibility & contrast

On white

9.02
#313CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#313CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA6
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA6#FFFFFF#000000##FFFFFF
##313CA61.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ca6;
/* rgb */ color: rgb(49, 60, 166);
/* oklch */ color: oklch(41.8% 0.169 272.2);
Tailwind
colors: {
  custom: {
    50: '#7971c1',
    500: '#313ca6',
    950: '#000000',
  },
}
SCSS
$custom: #313ca6;
$custom-light: #7971c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca6",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 234.359,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41758,
    "c": 0.16867,
    "h": 272.2
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#313CA6
secondary
#C0B973
accent
#D04ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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