#313895#313895

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

Color values

HEX#313895
RGBrgb(49, 56, 149)
HSLhsl(236, 51%, 39%)
HSVhsv(236, 67%, 58%)
CMYKcmyk(67.1%, 62.4%, 0%, 41.6%)
CIE-LABlab(28.51, 28.20, -52.07)
CIE-LCHlch(28.51, 59.21, 298.44°)
OKLaboklab(39.5% 0.0104 -0.15)
OKLCHoklch(39.5% 0.15 273.9)
XYZxyz(8.1038, 5.6505, 29.0915)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313895 #958E31
analogous
#316A95 #313895 #5C3195
triadic
#313895 #953138 #389531
tetradic
#313895 #95316A #958E31 #31955C
square
#313895 #95316A #958E31 #31955C
split-complementary
#313895 #955C31 #6A9531
monochromatic
#131539 #222767 #313895 #424BC1 #7077D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313895#FFFFFF#000000##FFFFFF
##3138951.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)
#004898
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313895;
/* rgb */ color: rgb(49, 56, 149);
/* oklch */ color: oklch(39.5% 0.150 273.9);
Tailwind
colors: {
  custom: {
    50: '#766eb5',
    500: '#313895',
    950: '#000000',
  },
}
SCSS
$custom: #313895;
$custom-light: #766eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#313895",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 149
  },
  "hsl": {
    "h": 235.8,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39503,
    "c": 0.15041,
    "h": 273.9
  },
  "luminance": 0.05651
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313895

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

Preview Lab → · Contrast checker → · Palette generator →

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