#313695#313695

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

Color values

HEX#313695
RGBrgb(49, 54, 149)
HSLhsl(237, 51%, 39%)
HSVhsv(237, 67%, 58%)
CMYKcmyk(67.1%, 63.8%, 0%, 41.6%)
CIE-LABlab(28.01, 29.51, -52.89)
CIE-LCHlch(28.01, 60.57, 299.16°)
OKLaboklab(39.13% 0.0121 -0.1525)
OKLCHoklch(39.13% 0.153 274.5)
XYZxyz(8.0088, 5.4605, 29.0599)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313695 #959031
analogous
#316895 #313695 #5E3195
triadic
#313695 #953136 #369531
tetradic
#313695 #953168 #959031 #31955E
square
#313695 #953168 #959031 #31955E
split-complementary
#313695 #955E31 #689531
monochromatic
#131539 #222567 #313695 #4249C1 #7075D0

Accessibility & contrast

On white

10.04
#313695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313695
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313695#FFFFFF#000000##FFFFFF
##3136951.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313695;
/* rgb */ color: rgb(49, 54, 149);
/* oklch */ color: oklch(39.1% 0.153 274.5);
Tailwind
colors: {
  custom: {
    50: '#766db5',
    500: '#313695',
    950: '#000000',
  },
}
SCSS
$custom: #313695;
$custom-light: #766db5;
$custom-dark: #000000;
JSON
{
  "hex": "#313695",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 149
  },
  "hsl": {
    "h": 237,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39132,
    "c": 0.15296,
    "h": 274.5
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#313695
secondary
#B8B46A
accent
#D34EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313695

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

Preview Lab → · Contrast checker → · Palette generator →

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