#313596#313596

#313596 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.156 H 274.7°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#313596
RGBrgb(49, 53, 150)
HSLhsl(238, 51%, 39%)
HSVhsv(238, 67%, 59%)
CMYKcmyk(67.3%, 64.7%, 0%, 41.2%)
CIE-LABlab(27.85, 30.52, -53.77)
CIE-LCHlch(27.85, 61.83, 299.58°)
OKLaboklab(39.04% 0.0128 -0.1551)
OKLCHoklch(39.04% 0.156 274.7)
XYZxyz(8.0429, 5.4005, 29.4668)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313596 #969231
analogous
#316896 #313596 #603196
triadic
#313596 #963135 #359631
tetradic
#313596 #963168 #969231 #319660
square
#313596 #963168 #969231 #319660
split-complementary
#313596 #966031 #689631
monochromatic
#13143A #222568 #313596 #4348C1 #7175D1

Accessibility & contrast

On white

10.10
#313596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313596
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313596#FFFFFF#000000##FFFFFF
##3135961.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313596;
/* rgb */ color: rgb(49, 53, 150);
/* oklch */ color: oklch(39.0% 0.156 274.7);
Tailwind
colors: {
  custom: {
    50: '#766cb6',
    500: '#313596',
    950: '#000000',
  },
}
SCSS
$custom: #313596;
$custom-light: #766cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313596",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 150
  },
  "hsl": {
    "h": 237.624,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3904,
    "c": 0.1556,
    "h": 274.7
  },
  "luminance": 0.05401
}

Semantic roles & 50–950 ramp

primary
#313596
secondary
#B8B56A
accent
#D54EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313596

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

Preview Lab → · Contrast checker → · Palette generator →

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