#313599#313599

#313599 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.160 H 274.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#313599
RGBrgb(49, 53, 153)
HSLhsl(238, 51%, 40%)
HSVhsv(238, 68%, 60%)
CMYKcmyk(68%, 65.4%, 0%, 40%)
CIE-LABlab(28.11, 31.59, -55.17)
CIE-LCHlch(28.11, 63.58, 299.79°)
OKLaboklab(39.31% 0.0126 -0.1592)
OKLCHoklch(39.31% 0.16 274.5)
XYZxyz(8.2876, 5.4983, 30.7554)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313599 #999531
analogous
#316999 #313599 #613199
triadic
#313599 #993135 #359931
tetradic
#313599 #993169 #999531 #319961
square
#313599 #993169 #999531 #319961
split-complementary
#313599 #996131 #699931
monochromatic
#13153C #22256B #313599 #4449C3 #7276D2

Accessibility & contrast

On white

10.00
#313599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313599
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313599#FFFFFF#000000##FFFFFF
##3135991.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313599;
/* rgb */ color: rgb(49, 53, 153);
/* oklch */ color: oklch(39.3% 0.160 274.5);
Tailwind
colors: {
  custom: {
    50: '#776cb8',
    500: '#313599',
    950: '#000000',
  },
}
SCSS
$custom: #313599;
$custom-light: #776cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#313599",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 153
  },
  "hsl": {
    "h": 237.692,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39314,
    "c": 0.15969,
    "h": 274.5
  },
  "luminance": 0.05499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313599

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

Preview Lab → · Contrast checker → · Palette generator →

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