#313FA6#313FA6

#313FA6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.165 H 271.4°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#313FA6
RGBrgb(49, 63, 166)
HSLhsl(233, 54%, 42%)
HSVhsv(233, 70%, 65%)
CMYKcmyk(70.5%, 62%, 0%, 34.9%)
CIE-LABlab(31.72, 29.78, -57.16)
CIE-LCHlch(31.72, 64.45, 297.52°)
OKLaboklab(42.31% 0.0042 -0.1649)
OKLCHoklch(42.31% 0.165 271.4)
XYZxyz(9.9247, 6.9602, 36.8894)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA6 #A69831
analogous
#3179A6 #313FA6 #5E31A6
triadic
#313FA6 #A6313F #3FA631
tetradic
#313FA6 #A63179 #A69831 #31A65E
square
#313FA6 #A63179 #A69831 #31A65E
split-complementary
#313FA6 #A65E31 #79A631
monochromatic
#151B47 #232D77 #313FA6 #4A5ACA #7A85D8

Accessibility & contrast

On white

8.78
#313FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#313FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FA6
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FA6#FFFFFF#000000##FFFFFF
##313FA61.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313fa6;
/* rgb */ color: rgb(49, 63, 166);
/* oklch */ color: oklch(42.3% 0.165 271.4);
Tailwind
colors: {
  custom: {
    50: '#7974c1',
    500: '#313fa6',
    950: '#000000',
  },
}
SCSS
$custom: #313fa6;
$custom-light: #7974c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa6",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 232.821,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42311,
    "c": 0.16498,
    "h": 271.4
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

primary
#313FA6
secondary
#C0B773
accent
#CC4ADE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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