#313C99#313C99

#313C99 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.151 H 272.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#313C99
RGBrgb(49, 60, 153)
HSLhsl(234, 51%, 40%)
HSVhsv(234, 68%, 60%)
CMYKcmyk(68%, 60.8%, 0%, 40%)
CIE-LABlab(29.87, 27.01, -52.30)
CIE-LCHlch(29.87, 58.86, 297.31°)
OKLaboklab(40.61% 0.0068 -0.1507)
OKLCHoklch(40.61% 0.151 272.6)
XYZxyz(8.6303, 6.1838, 30.8696)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C99 #998E31
analogous
#317099 #313C99 #5A3199
triadic
#313C99 #99313C #3C9931
tetradic
#313C99 #993170 #998E31 #31995A
square
#313C99 #993170 #998E31 #31995A
split-complementary
#313C99 #995A31 #709931
monochromatic
#13183C #222A6B #313C99 #4452C3 #727DD2

Accessibility & contrast

On white

9.39
#313C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C99
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C99#FFFFFF#000000##FFFFFF
##313C991.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313c99;
/* rgb */ color: rgb(49, 60, 153);
/* oklch */ color: oklch(40.6% 0.151 272.6);
Tailwind
colors: {
  custom: {
    50: '#7671b8',
    500: '#313c99',
    950: '#000000',
  },
}
SCSS
$custom: #313c99;
$custom-light: #7671b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313c99",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 153
  },
  "hsl": {
    "h": 233.654,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40611,
    "c": 0.15085,
    "h": 272.6
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#313C99
secondary
#BAB26C
accent
#CC4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313C99

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

Preview Lab → · Contrast checker → · Palette generator →

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