#313995#313995

#313995 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.149 H 273.7°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#313995
RGBrgb(49, 57, 149)
HSLhsl(235, 51%, 39%)
HSVhsv(235, 67%, 58%)
CMYKcmyk(67.1%, 61.7%, 0%, 41.6%)
CIE-LABlab(28.77, 27.54, -51.65)
CIE-LCHlch(28.77, 58.54, 298.07°)
OKLaboklab(39.69% 0.0095 -0.1488)
OKLCHoklch(39.69% 0.149 273.7)
XYZxyz(8.1528, 5.7484, 29.1079)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313995 #958D31
analogous
#316B95 #313995 #5B3195
triadic
#313995 #953139 #399531
tetradic
#313995 #95316B #958D31 #31955B
square
#313995 #95316B #958D31 #31955B
split-complementary
#313995 #955B31 #6B9531
monochromatic
#131639 #222767 #313995 #424CC1 #7078D0

Accessibility & contrast

On white

9.77
#313995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#313995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313995
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313995#FFFFFF#000000##FFFFFF
##3139951.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313995;
/* rgb */ color: rgb(49, 57, 149);
/* oklch */ color: oklch(39.7% 0.149 273.7);
Tailwind
colors: {
  custom: {
    50: '#766fb5',
    500: '#313995',
    950: '#000000',
  },
}
SCSS
$custom: #313995;
$custom-light: #766fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#313995",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 149
  },
  "hsl": {
    "h": 235.2,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39692,
    "c": 0.14912,
    "h": 273.7
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#313995
secondary
#B8B26A
accent
#CF4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313995

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

Preview Lab → · Contrast checker → · Palette generator →

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