#313C96#313C96

#313C96 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.147 H 272.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#313C96
RGBrgb(49, 60, 150)
HSLhsl(233, 51%, 39%)
HSVhsv(233, 67%, 59%)
CMYKcmyk(67.3%, 60%, 0%, 41.2%)
CIE-LABlab(29.63, 25.92, -50.86)
CIE-LCHlch(29.63, 57.09, 297.00°)
OKLaboklab(40.35% 0.0069 -0.1465)
OKLCHoklch(40.35% 0.147 272.7)
XYZxyz(8.3857, 6.0859, 29.5810)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C96 #968B31
analogous
#316F96 #313C96 #593196
triadic
#313C96 #96313C #3C9631
tetradic
#313C96 #96316F #968B31 #319659
square
#313C96 #96316F #968B31 #319659
split-complementary
#313C96 #965931 #6F9631
monochromatic
#13173A #222A68 #313C96 #4351C1 #717BD1

Accessibility & contrast

On white

9.47
#313C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#313C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C96
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C96#FFFFFF#000000##FFFFFF
##313C961.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313c96;
/* rgb */ color: rgb(49, 60, 150);
/* oklch */ color: oklch(40.4% 0.147 272.7);
Tailwind
colors: {
  custom: {
    50: '#7671b6',
    500: '#313c96',
    950: '#000000',
  },
}
SCSS
$custom: #313c96;
$custom-light: #7671b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313c96",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 150
  },
  "hsl": {
    "h": 233.465,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40354,
    "c": 0.14663,
    "h": 272.7
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

primary
#313C96
secondary
#B8B06A
accent
#CB4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313C96

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

Preview Lab → · Contrast checker → · Palette generator →

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