#313F97#313F97

#313F97 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.144 H 271.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#313F97
RGBrgb(49, 63, 151)
HSLhsl(232, 51%, 39%)
HSVhsv(232, 68%, 59%)
CMYKcmyk(67.5%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.50, 24.28, -50.06)
CIE-LCHlch(30.50, 55.64, 295.88°)
OKLaboklab(41.03% 0.0042 -0.1441)
OKLCHoklch(41.03% 0.144 271.7)
XYZxyz(8.6282, 6.4416, 30.0608)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F97 #978931
analogous
#317297 #313F97 #563197
triadic
#313F97 #97313F #3F9731
tetradic
#313F97 #973172 #978931 #319756
square
#313F97 #973172 #978931 #319756
split-complementary
#313F97 #975631 #729731
monochromatic
#13183B #222C69 #313F97 #4355C2 #717ED1

Accessibility & contrast

On white

9.18
#313F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#313F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F97
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F97#FFFFFF#000000##FFFFFF
##313F971.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313f97;
/* rgb */ color: rgb(49, 63, 151);
/* oklch */ color: oklch(41.0% 0.144 271.7);
Tailwind
colors: {
  custom: {
    50: '#7673b6',
    500: '#313f97',
    950: '#000000',
  },
}
SCSS
$custom: #313f97;
$custom-light: #7673b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313f97",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 231.765,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41028,
    "c": 0.14413,
    "h": 271.7
  },
  "luminance": 0.06442
}

Semantic roles & 50–950 ramp

primary
#313F97
secondary
#B9AE6B
accent
#C74DDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F97

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

Preview Lab → · Contrast checker → · Palette generator →

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