#313FA1#313FA1

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

Color values

HEX#313FA1
RGBrgb(49, 63, 161)
HSLhsl(233, 53%, 41%)
HSVhsv(233, 70%, 63%)
CMYKcmyk(69.6%, 60.9%, 0%, 36.9%)
CIE-LABlab(31.30, 27.95, -54.82)
CIE-LCHlch(31.30, 61.54, 297.02°)
OKLaboklab(41.88% 0.0042 -0.1581)
OKLCHoklch(41.88% 0.158 271.5)
XYZxyz(9.4750, 6.7803, 34.5207)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA1 #A19331
analogous
#3177A1 #313FA1 #5B31A1
triadic
#313FA1 #A1313F #3FA131
tetradic
#313FA1 #A13177 #A19331 #31A15B
square
#313FA1 #A13177 #A19331 #31A15B
split-complementary
#313FA1 #A15B31 #77A131
monochromatic
#141A43 #232D72 #313FA1 #4858C7 #7783D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313FA1#FFFFFF#000000##FFFFFF
##313FA11.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)
#004FA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313fa1;
/* rgb */ color: rgb(49, 63, 161);
/* oklch */ color: oklch(41.9% 0.158 271.5);
Tailwind
colors: {
  custom: {
    50: '#7874be',
    500: '#313fa1',
    950: '#000000',
  },
}
SCSS
$custom: #313fa1;
$custom-light: #7874be;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa1",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 232.5,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41875,
    "c": 0.15813,
    "h": 271.5
  },
  "luminance": 0.06781
}

Semantic roles & 50–950 ramp

primary
#313FA1
secondary
#BEB470
accent
#CB4BDD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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