#313E96#313E96

#313E96 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.144 H 272.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#313E96
RGBrgb(49, 62, 150)
HSLhsl(232, 51%, 39%)
HSVhsv(232, 67%, 59%)
CMYKcmyk(67.3%, 58.7%, 0%, 41.2%)
CIE-LABlab(30.16, 24.58, -50.01)
CIE-LCHlch(30.16, 55.72, 296.18°)
OKLaboklab(40.75% 0.0051 -0.1439)
OKLCHoklch(40.75% 0.144 272)
XYZxyz(8.4924, 6.2995, 29.6166)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E96 #968931
analogous
#317196 #313E96 #573196
triadic
#313E96 #96313E #3E9631
tetradic
#313E96 #963171 #968931 #319657
square
#313E96 #963171 #968931 #319657
split-complementary
#313E96 #965731 #719631
monochromatic
#13183A #222B68 #313E96 #4353C1 #717DD1

Accessibility & contrast

On white

9.29
#313E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E96
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E96#FFFFFF#000000##FFFFFF
##313E961.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313e96;
/* rgb */ color: rgb(49, 62, 150);
/* oklch */ color: oklch(40.7% 0.144 272.0);
Tailwind
colors: {
  custom: {
    50: '#7573b6',
    500: '#313e96',
    950: '#000000',
  },
}
SCSS
$custom: #313e96;
$custom-light: #7573b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313e96",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 150
  },
  "hsl": {
    "h": 232.277,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40746,
    "c": 0.14402,
    "h": 272
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#313E96
secondary
#B8AE6A
accent
#C84EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313E96

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

Preview Lab → · Contrast checker → · Palette generator →

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