#313D9C#313D9C

#313D9C is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.154 H 272.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#313D9C
RGBrgb(49, 61, 156)
HSLhsl(233, 52%, 40%)
HSVhsv(233, 69%, 61%)
CMYKcmyk(68.6%, 60.9%, 0%, 38.8%)
CIE-LABlab(30.38, 27.44, -53.30)
CIE-LCHlch(30.38, 59.95, 297.24°)
OKLaboklab(41.06% 0.006 -0.1536)
OKLCHoklch(41.06% 0.154 272.2)
XYZxyz(8.9341, 6.3899, 32.2086)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D9C #9C9031
analogous
#31729C #313D9C #5A319C
triadic
#313D9C #9C313D #3D9C31
tetradic
#313D9C #9C3172 #9C9031 #319C5A
square
#313D9C #9C3172 #9C9031 #319C5A
split-complementary
#313D9C #9C5A31 #729C31
monochromatic
#14193F #222B6D #313D9C #4554C5 #747FD3

Accessibility & contrast

On white

9.22
#313D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#313D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D9C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D9C#FFFFFF#000000##FFFFFF
##313D9C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313d9c;
/* rgb */ color: rgb(49, 61, 156);
/* oklch */ color: oklch(41.1% 0.154 272.2);
Tailwind
colors: {
  custom: {
    50: '#7772ba',
    500: '#313d9c',
    950: '#000000',
  },
}
SCSS
$custom: #313d9c;
$custom-light: #7772ba;
$custom-dark: #000000;
JSON
{
  "hex": "#313d9c",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 233.271,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41061,
    "c": 0.15375,
    "h": 272.2
  },
  "luminance": 0.06391
}

Semantic roles & 50–950 ramp

primary
#313D9C
secondary
#BBB36D
accent
#CC4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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