#313C98#313C98

#313C98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.149 H 272.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#313C98
RGBrgb(49, 60, 152)
HSLhsl(234, 51%, 39%)
HSVhsv(234, 68%, 60%)
CMYKcmyk(67.8%, 60.5%, 0%, 40.4%)
CIE-LABlab(29.79, 26.65, -51.82)
CIE-LCHlch(29.79, 58.27, 297.21°)
OKLaboklab(40.53% 0.0069 -0.1493)
OKLCHoklch(40.53% 0.149 272.6)
XYZxyz(8.5481, 6.1509, 30.4364)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C98 #988D31
analogous
#317098 #313C98 #5A3198
triadic
#313C98 #98313C #3C9831
tetradic
#313C98 #983170 #988D31 #31985A
square
#313C98 #983170 #988D31 #31985A
split-complementary
#313C98 #985A31 #709831
monochromatic
#13173B #222A6A #313C98 #4451C3 #727CD2

Accessibility & contrast

On white

9.42
#313C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#313C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C98
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C98#FFFFFF#000000##FFFFFF
##313C981.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313c98;
/* rgb */ color: rgb(49, 60, 152);
/* oklch */ color: oklch(40.5% 0.149 272.6);
Tailwind
colors: {
  custom: {
    50: '#7671b7',
    500: '#313c98',
    950: '#000000',
  },
}
SCSS
$custom: #313c98;
$custom-light: #7671b7;
$custom-dark: #000000;
JSON
{
  "hex": "#313c98",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 233.592,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.14945,
    "h": 272.6
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#313C98
secondary
#B9B16B
accent
#CC4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313C98

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

Preview Lab → · Contrast checker → · Palette generator →

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