#313C9F#313C9F

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

Color values

HEX#313C9F
RGBrgb(49, 60, 159)
HSLhsl(234, 53%, 41%)
HSVhsv(234, 69%, 62%)
CMYKcmyk(69.2%, 62.3%, 0%, 37.6%)
CIE-LABlab(30.37, 29.19, -55.13)
CIE-LCHlch(30.37, 62.39, 297.90°)
OKLaboklab(41.13% 0.0067 -0.159)
OKLCHoklch(41.13% 0.159 272.4)
XYZxyz(9.1384, 6.3870, 33.5454)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C9F #9F9431
analogous
#31739F #313C9F #5D319F
triadic
#313C9F #9F313C #3C9F31
tetradic
#313C9F #9F3173 #9F9431 #319F5D
square
#313C9F #9F3173 #9F9431 #319F5D
split-complementary
#313C9F #9F5D31 #739F31
monochromatic
#141941 #232A70 #313C9F #4754C6 #767FD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313C9F#FFFFFF#000000##FFFFFF
##313C9F1.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)
#004DA2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313c9f;
/* rgb */ color: rgb(49, 60, 159);
/* oklch */ color: oklch(41.1% 0.159 272.4);
Tailwind
colors: {
  custom: {
    50: '#7871bc',
    500: '#313c9f',
    950: '#000000',
  },
}
SCSS
$custom: #313c9f;
$custom-light: #7871bc;
$custom-dark: #000000;
JSON
{
  "hex": "#313c9f",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 159
  },
  "hsl": {
    "h": 234,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41133,
    "c": 0.15915,
    "h": 272.4
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#313C9F
secondary
#BDB56F
accent
#CE4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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