#313DA7#313DA7

#313DA7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.169 H 271.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#313DA7
RGBrgb(49, 61, 167)
HSLhsl(234, 55%, 42%)
HSVhsv(234, 71%, 65%)
CMYKcmyk(70.7%, 63.5%, 0%, 34.5%)
CIE-LABlab(31.30, 31.44, -58.44)
CIE-LCHlch(31.30, 66.36, 298.28°)
OKLaboklab(42.03% 0.0056 -0.1687)
OKLCHoklch(42.03% 0.169 271.9)
XYZxyz(9.9081, 6.7795, 37.3381)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DA7 #A79B31
analogous
#3178A7 #313DA7 #6031A7
triadic
#313DA7 #A7313D #3DA731
tetradic
#313DA7 #A73178 #A79B31 #31A760
square
#313DA7 #A73178 #A79B31 #31A760
split-complementary
#313DA7 #A76031 #78A731
monochromatic
#151A48 #232C78 #313DA7 #4B58CA #7A84D8

Accessibility & contrast

On white

8.91
#313DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#313DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DA7
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DA7#FFFFFF#000000##FFFFFF
##313DA71.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313da7;
/* rgb */ color: rgb(49, 61, 167);
/* oklch */ color: oklch(42.0% 0.169 271.9);
Tailwind
colors: {
  custom: {
    50: '#7972c2',
    500: '#313da7',
    950: '#000000',
  },
}
SCSS
$custom: #313da7;
$custom-light: #7972c2;
$custom-dark: #000000;
JSON
{
  "hex": "#313da7",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 233.898,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4203,
    "c": 0.16879,
    "h": 271.9
  },
  "luminance": 0.0678
}

Semantic roles & 50–950 ramp

primary
#313DA7
secondary
#C1B973
accent
#CF4ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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