#313E98#313E98

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

Color values

HEX#313E98
RGBrgb(49, 62, 152)
HSLhsl(232, 51%, 39%)
HSVhsv(232, 68%, 60%)
CMYKcmyk(67.8%, 59.2%, 0%, 40.4%)
CIE-LABlab(30.31, 25.32, -50.97)
CIE-LCHlch(30.31, 56.91, 296.41°)
OKLaboklab(40.91% 0.0051 -0.1468)
OKLCHoklch(40.91% 0.147 272)
XYZxyz(8.6548, 6.3644, 30.4720)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E98 #988B31
analogous
#317298 #313E98 #583198
triadic
#313E98 #98313E #3E9831
tetradic
#313E98 #983172 #988B31 #319858
square
#313E98 #983172 #988B31 #319858
split-complementary
#313E98 #985831 #729831
monochromatic
#13183B #222B6A #313E98 #4454C3 #727ED2

Accessibility & contrast

On white

9.24
#313E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#313E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E98
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E98#FFFFFF#000000##FFFFFF
##313E981.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313e98;
/* rgb */ color: rgb(49, 62, 152);
/* oklch */ color: oklch(40.9% 0.147 272.0);
Tailwind
colors: {
  custom: {
    50: '#7673b7',
    500: '#313e98',
    950: '#000000',
  },
}
SCSS
$custom: #313e98;
$custom-light: #7673b7;
$custom-dark: #000000;
JSON
{
  "hex": "#313e98",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 232.427,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40914,
    "c": 0.14685,
    "h": 272
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#313E98
secondary
#B9B06B
accent
#C94DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313E98

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

Preview Lab → · Contrast checker → · Palette generator →

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