#313F9F#313F9F

#313F9F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.155 H 271.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#313F9F
RGBrgb(49, 63, 159)
HSLhsl(232, 53%, 41%)
HSVhsv(232, 69%, 62%)
CMYKcmyk(69.2%, 60.4%, 0%, 37.6%)
CIE-LABlab(31.14, 27.22, -53.88)
CIE-LCHlch(31.14, 60.36, 296.80°)
OKLaboklab(41.7% 0.0043 -0.1553)
OKLCHoklch(41.7% 0.155 271.6)
XYZxyz(9.3000, 6.7103, 33.5993)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F9F #9F9131
analogous
#31769F #313F9F #5A319F
triadic
#313F9F #9F313F #3F9F31
tetradic
#313F9F #9F3176 #9F9131 #319F5A
square
#313F9F #9F3176 #9F9131 #319F5A
split-complementary
#313F9F #9F5A31 #769F31
monochromatic
#141A41 #232C70 #313F9F #4757C6 #7682D5

Accessibility & contrast

On white

8.97
#313F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#313F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F9F
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F9F#FFFFFF#000000##FFFFFF
##313F9F1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313f9f;
/* rgb */ color: rgb(49, 63, 159);
/* oklch */ color: oklch(41.7% 0.155 271.6);
Tailwind
colors: {
  custom: {
    50: '#7774bc',
    500: '#313f9f',
    950: '#000000',
  },
}
SCSS
$custom: #313f9f;
$custom-light: #7774bc;
$custom-dark: #000000;
JSON
{
  "hex": "#313f9f",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 232.364,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41703,
    "c": 0.15536,
    "h": 271.6
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#313F9F
secondary
#BDB36F
accent
#CA4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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