#313594#313594

#313594 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.153 H 274.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#313594
RGBrgb(49, 53, 148)
HSLhsl(238, 50%, 39%)
HSVhsv(238, 67%, 58%)
CMYKcmyk(66.9%, 64.2%, 0%, 42%)
CIE-LABlab(27.67, 29.81, -52.83)
CIE-LCHlch(27.67, 60.65, 299.43°)
OKLaboklab(38.86% 0.013 -0.1523)
OKLCHoklch(38.86% 0.153 274.9)
XYZxyz(7.8833, 5.3366, 28.6259)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313594 #949031
analogous
#316694 #313594 #5E3194
triadic
#313594 #943135 #359431
tetradic
#313594 #943166 #949031 #31945E
square
#313594 #943166 #949031 #31945E
split-complementary
#313594 #945E31 #669431
monochromatic
#131438 #222566 #313594 #4247C0 #7074D0

Accessibility & contrast

On white

10.16
#313594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313594
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313594#FFFFFF#000000##FFFFFF
##3135941.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313594;
/* rgb */ color: rgb(49, 53, 148);
/* oklch */ color: oklch(38.9% 0.153 274.9);
Tailwind
colors: {
  custom: {
    50: '#766cb4',
    500: '#313594',
    950: '#000000',
  },
}
SCSS
$custom: #313594;
$custom-light: #766cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#313594",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 148
  },
  "hsl": {
    "h": 237.576,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38859,
    "c": 0.15285,
    "h": 274.9
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#313594
secondary
#B7B469
accent
#D44EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313594

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

Preview Lab → · Contrast checker → · Palette generator →

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