#313F9E#313F9E

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

Color values

HEX#313F9E
RGBrgb(49, 63, 158)
HSLhsl(232, 53%, 41%)
HSVhsv(232, 69%, 62%)
CMYKcmyk(69%, 60.1%, 0%, 38%)
CIE-LABlab(31.06, 26.85, -53.41)
CIE-LCHlch(31.06, 59.78, 296.69°)
OKLaboklab(41.62% 0.0043 -0.1539)
OKLCHoklch(41.62% 0.154 271.6)
XYZxyz(9.2136, 6.6757, 33.1441)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F9E #9E9031
analogous
#31759E #313F9E #5A319E
triadic
#313F9E #9E313F #3F9E31
tetradic
#313F9E #9E3175 #9E9031 #319E5A
square
#313F9E #9E3175 #9E9031 #319E5A
split-complementary
#313F9E #9E5A31 #759E31
monochromatic
#141A41 #232C6F #313F9E #4657C6 #7581D4

Accessibility & contrast

On white

8.99
#313F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F9E
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F9E#FFFFFF#000000##FFFFFF
##313F9E1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313f9e;
/* rgb */ color: rgb(49, 63, 158);
/* oklch */ color: oklch(41.6% 0.154 271.6);
Tailwind
colors: {
  custom: {
    50: '#7774bb',
    500: '#313f9e',
    950: '#000000',
  },
}
SCSS
$custom: #313f9e;
$custom-light: #7774bb;
$custom-dark: #000000;
JSON
{
  "hex": "#313f9e",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 232.294,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41617,
    "c": 0.15397,
    "h": 271.6
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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