#313798#313798

#313798 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.156 H 274.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#313798
RGBrgb(49, 55, 152)
HSLhsl(237, 51%, 39%)
HSVhsv(237, 68%, 60%)
CMYKcmyk(67.8%, 63.8%, 0%, 40.4%)
CIE-LABlab(28.52, 29.93, -53.90)
CIE-LCHlch(28.52, 61.65, 299.05°)
OKLaboklab(39.59% 0.0111 -0.1554)
OKLCHoklch(39.59% 0.156 274.1)
XYZxyz(8.2984, 5.6516, 30.3532)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313798 #989231
analogous
#316B98 #313798 #5F3198
triadic
#313798 #983137 #379831
tetradic
#313798 #98316B #989231 #31985F
square
#313798 #98316B #989231 #31985F
split-complementary
#313798 #985F31 #6B9831
monochromatic
#13163B #22266A #313798 #444BC3 #7277D2

Accessibility & contrast

On white

9.86
#313798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313798
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313798#FFFFFF#000000##FFFFFF
##3137981.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313798;
/* rgb */ color: rgb(49, 55, 152);
/* oklch */ color: oklch(39.6% 0.156 274.1);
Tailwind
colors: {
  custom: {
    50: '#766eb7',
    500: '#313798',
    950: '#000000',
  },
}
SCSS
$custom: #313798;
$custom-light: #766eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#313798",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 236.505,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39585,
    "c": 0.15582,
    "h": 274.1
  },
  "luminance": 0.05652
}

Semantic roles & 50–950 ramp

primary
#313798
secondary
#B9B56B
accent
#D24DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313798

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

Preview Lab → · Contrast checker → · Palette generator →

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