#313395#313395

#313395 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.157 H 275.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#313395
RGBrgb(49, 51, 149)
HSLhsl(239, 51%, 39%)
HSVhsv(239, 67%, 58%)
CMYKcmyk(67.1%, 65.8%, 0%, 41.6%)
CIE-LABlab(27.27, 31.46, -54.10)
CIE-LCHlch(27.27, 62.58, 300.18°)
OKLaboklab(38.59% 0.0145 -0.156)
OKLCHoklch(38.59% 0.157 275.3)
XYZxyz(7.8735, 5.1899, 29.0148)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313395 #959331
analogous
#316595 #313395 #613195
triadic
#313395 #953133 #339531
tetradic
#313395 #953165 #959331 #319561
square
#313395 #953165 #959331 #319561
split-complementary
#313395 #956131 #659531
monochromatic
#131339 #222367 #313395 #4245C1 #7072D0

Accessibility & contrast

On white

10.30
#313395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313395
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313395#FFFFFF#000000##FFFFFF
##3133951.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313395;
/* rgb */ color: rgb(49, 51, 149);
/* oklch */ color: oklch(38.6% 0.157 275.3);
Tailwind
colors: {
  custom: {
    50: '#766bb5',
    500: '#313395',
    950: '#000000',
  },
}
SCSS
$custom: #313395;
$custom-light: #766bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#313395",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 238.8,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38591,
    "c": 0.15672,
    "h": 275.3
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#313395
secondary
#B8B66A
accent
#D74EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #313395

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

Preview Lab → · Contrast checker → · Palette generator →

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