#313B98#313B98

#313B98 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.151 H 272.9°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#313B98
RGBrgb(49, 59, 152)
HSLhsl(234, 51%, 39%)
HSVhsv(234, 68%, 60%)
CMYKcmyk(67.8%, 61.2%, 0%, 40.4%)
CIE-LABlab(29.53, 27.31, -52.24)
CIE-LCHlch(29.53, 58.95, 297.60°)
OKLaboklab(40.33% 0.0077 -0.1505)
OKLCHoklch(40.33% 0.151 272.9)
XYZxyz(8.4962, 6.0471, 30.4191)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B98 #988E31
analogous
#316F98 #313B98 #5B3198
triadic
#313B98 #98313B #3B9831
tetradic
#313B98 #98316F #988E31 #31985B
square
#313B98 #98316F #988E31 #31985B
split-complementary
#313B98 #985B31 #6F9831
monochromatic
#13173B #22296A #313B98 #4450C3 #727BD2

Accessibility & contrast

On white

9.50
#313B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#313B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B98
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B98#FFFFFF#000000##FFFFFF
##313B981.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313b98;
/* rgb */ color: rgb(49, 59, 152);
/* oklch */ color: oklch(40.3% 0.151 272.9);
Tailwind
colors: {
  custom: {
    50: '#7671b7',
    500: '#313b98',
    950: '#000000',
  },
}
SCSS
$custom: #313b98;
$custom-light: #7671b7;
$custom-dark: #000000;
JSON
{
  "hex": "#313b98",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 152
  },
  "hsl": {
    "h": 234.175,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40333,
    "c": 0.15074,
    "h": 272.9
  },
  "luminance": 0.06048
}

Semantic roles & 50–950 ramp

primary
#313B98
secondary
#B9B26B
accent
#CD4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313B98

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

Preview Lab → · Contrast checker → · Palette generator →

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