#313795#313795

#313795 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.152 H 274.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#313795
RGBrgb(49, 55, 149)
HSLhsl(236, 51%, 39%)
HSVhsv(236, 67%, 58%)
CMYKcmyk(67.1%, 63.1%, 0%, 41.6%)
CIE-LABlab(28.26, 28.86, -52.48)
CIE-LCHlch(28.26, 59.89, 298.80°)
OKLaboklab(39.32% 0.0112 -0.1513)
OKLCHoklch(39.32% 0.152 274.2)
XYZxyz(8.0558, 5.5546, 29.0755)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313795 #958F31
analogous
#316995 #313795 #5D3195
triadic
#313795 #953137 #379531
tetradic
#313795 #953169 #958F31 #31955D
square
#313795 #953169 #958F31 #31955D
split-complementary
#313795 #955D31 #699531
monochromatic
#131539 #222667 #313795 #424AC1 #7076D0

Accessibility & contrast

On white

9.95
#313795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313795
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313795#FFFFFF#000000##FFFFFF
##3137951.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313795;
/* rgb */ color: rgb(49, 55, 149);
/* oklch */ color: oklch(39.3% 0.152 274.2);
Tailwind
colors: {
  custom: {
    50: '#766eb5',
    500: '#313795',
    950: '#000000',
  },
}
SCSS
$custom: #313795;
$custom-light: #766eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#313795",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 149
  },
  "hsl": {
    "h": 236.4,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39317,
    "c": 0.15168,
    "h": 274.2
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#313795
secondary
#B8B36A
accent
#D24EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313795

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

Preview Lab → · Contrast checker → · Palette generator →

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