#313D9F#313D9F

#313D9F is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.158 H 272.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#313D9F
RGBrgb(49, 61, 159)
HSLhsl(233, 53%, 41%)
HSVhsv(233, 69%, 62%)
CMYKcmyk(69.2%, 61.6%, 0%, 37.6%)
CIE-LABlab(30.62, 28.54, -54.72)
CIE-LCHlch(30.62, 61.71, 297.54°)
OKLaboklab(41.32% 0.0059 -0.1578)
OKLCHoklch(41.32% 0.158 272.1)
XYZxyz(9.1913, 6.4928, 33.5630)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D9F #9F9331
analogous
#31749F #313D9F #5C319F
triadic
#313D9F #9F313D #3D9F31
tetradic
#313D9F #9F3174 #9F9331 #319F5C
square
#313D9F #9F3174 #9F9331 #319F5C
split-complementary
#313D9F #9F5C31 #749F31
monochromatic
#141941 #232B70 #313D9F #4755C6 #7680D5

Accessibility & contrast

On white

9.14
#313D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#313D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D9F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D9F#FFFFFF#000000##FFFFFF
##313D9F1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313d9f;
/* rgb */ color: rgb(49, 61, 159);
/* oklch */ color: oklch(41.3% 0.158 272.1);
Tailwind
colors: {
  custom: {
    50: '#7772bc',
    500: '#313d9f',
    950: '#000000',
  },
}
SCSS
$custom: #313d9f;
$custom-light: #7772bc;
$custom-dark: #000000;
JSON
{
  "hex": "#313d9f",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 159
  },
  "hsl": {
    "h": 233.455,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41321,
    "c": 0.1579,
    "h": 272.1
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#313D9F
secondary
#BDB46F
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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