#313C9B#313C9B

#313C9B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.154 H 272.5°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#313C9B
RGBrgb(49, 60, 155)
HSLhsl(234, 52%, 40%)
HSVhsv(234, 68%, 61%)
CMYKcmyk(68.4%, 61.3%, 0%, 39.2%)
CIE-LABlab(30.04, 27.74, -53.25)
CIE-LCHlch(30.04, 60.04, 297.52°)
OKLaboklab(40.78% 0.0068 -0.1535)
OKLCHoklch(40.78% 0.154 272.5)
XYZxyz(8.7969, 6.2504, 31.7469)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C9B #9B9031
analogous
#31719B #313C9B #5B319B
triadic
#313C9B #9B313C #3C9B31
tetradic
#313C9B #9B3171 #9B9031 #319B5B
square
#313C9B #9B3171 #9B9031 #319B5B
split-complementary
#313C9B #9B5B31 #719B31
monochromatic
#14183E #222A6D #313C9B #4552C4 #737DD3

Accessibility & contrast

On white

9.33
#313C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#313C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C9B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C9B#FFFFFF#000000##FFFFFF
##313C9B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313c9b;
/* rgb */ color: rgb(49, 60, 155);
/* oklch */ color: oklch(40.8% 0.154 272.5);
Tailwind
colors: {
  custom: {
    50: '#7771b9',
    500: '#313c9b',
    950: '#000000',
  },
}
SCSS
$custom: #313c9b;
$custom-light: #7771b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313c9b",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 155
  },
  "hsl": {
    "h": 233.774,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.40784,
    "c": 0.15363,
    "h": 272.5
  },
  "luminance": 0.06251
}

Semantic roles & 50–950 ramp

primary
#313C9B
secondary
#BBB36D
accent
#CD4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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