#313598#313598

#313598 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.158 H 274.6°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#313598
RGBrgb(49, 53, 152)
HSLhsl(238, 51%, 39%)
HSVhsv(238, 68%, 60%)
CMYKcmyk(67.8%, 65.1%, 0%, 40.4%)
CIE-LABlab(28.02, 31.23, -54.71)
CIE-LCHlch(28.02, 62.99, 299.72°)
OKLaboklab(39.22% 0.0127 -0.1578)
OKLCHoklch(39.22% 0.158 274.6)
XYZxyz(8.2053, 5.4654, 30.3222)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313598 #989431
analogous
#316998 #313598 #613198
triadic
#313598 #983135 #359831
tetradic
#313598 #983169 #989431 #319861
square
#313598 #983169 #989431 #319861
split-complementary
#313598 #986131 #699831
monochromatic
#13153B #22256A #313598 #4449C3 #7276D2

Accessibility & contrast

On white

10.03
#313598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313598
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313598#FFFFFF#000000##FFFFFF
##3135981.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313598;
/* rgb */ color: rgb(49, 53, 152);
/* oklch */ color: oklch(39.2% 0.158 274.6);
Tailwind
colors: {
  custom: {
    50: '#776cb7',
    500: '#313598',
    950: '#000000',
  },
}
SCSS
$custom: #313598;
$custom-light: #776cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#313598",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 152
  },
  "hsl": {
    "h": 237.67,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39222,
    "c": 0.15833,
    "h": 274.6
  },
  "luminance": 0.05466
}

Semantic roles & 50–950 ramp

primary
#313598
secondary
#B9B66B
accent
#D54DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313598

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

Preview Lab → · Contrast checker → · Palette generator →

#313598 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva