#313F96#313F96

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

Color values

HEX#313F96
RGBrgb(49, 63, 150)
HSLhsl(232, 51%, 39%)
HSVhsv(232, 67%, 59%)
CMYKcmyk(67.3%, 58%, 0%, 41.2%)
CIE-LABlab(30.42, 23.91, -49.57)
CIE-LCHlch(30.42, 55.04, 295.75°)
OKLaboklab(40.95% 0.0042 -0.1426)
OKLCHoklch(40.95% 0.143 271.7)
XYZxyz(8.5473, 6.4092, 29.6349)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F96 #968831
analogous
#317296 #313F96 #563196
triadic
#313F96 #96313F #3F9631
tetradic
#313F96 #963172 #968831 #319656
square
#313F96 #963172 #968831 #319656
split-complementary
#313F96 #965631 #729631
monochromatic
#13183A #222C68 #313F96 #4354C1 #717ED1

Accessibility & contrast

On white

9.20
#313F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F96
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F96#FFFFFF#000000##FFFFFF
##313F961.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313f96;
/* rgb */ color: rgb(49, 63, 150);
/* oklch */ color: oklch(40.9% 0.143 271.7);
Tailwind
colors: {
  custom: {
    50: '#7573b6',
    500: '#313f96',
    950: '#000000',
  },
}
SCSS
$custom: #313f96;
$custom-light: #7573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313f96",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 150
  },
  "hsl": {
    "h": 231.683,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40945,
    "c": 0.14271,
    "h": 271.7
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#313F96
secondary
#B8AE6A
accent
#C74EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F96

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

Preview Lab → · Contrast checker → · Palette generator →

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