#313893#313893

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

Color values

HEX#313893
RGBrgb(49, 56, 147)
HSLhsl(236, 50%, 38%)
HSVhsv(236, 67%, 58%)
CMYKcmyk(66.7%, 61.9%, 0%, 42.4%)
CIE-LABlab(28.35, 27.48, -51.11)
CIE-LCHlch(28.35, 58.03, 298.26°)
OKLaboklab(39.33% 0.0104 -0.1472)
OKLCHoklch(39.33% 0.148 274)
XYZxyz(7.9455, 5.5872, 28.2578)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313893 #938C31
analogous
#316993 #313893 #5B3193
triadic
#313893 #933138 #389331
tetradic
#313893 #933169 #938C31 #31935B
square
#313893 #933169 #938C31 #31935B
split-complementary
#313893 #935B31 #699331
monochromatic
#121537 #222765 #313893 #414AC0 #6F76CF

Accessibility & contrast

On white

9.92
#313893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313893
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313893#FFFFFF#000000##FFFFFF
##3138931.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313893;
/* rgb */ color: rgb(49, 56, 147);
/* oklch */ color: oklch(39.3% 0.148 274.0);
Tailwind
colors: {
  custom: {
    50: '#756eb3',
    500: '#313893',
    950: '#000000',
  },
}
SCSS
$custom: #313893;
$custom-light: #756eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#313893",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 147
  },
  "hsl": {
    "h": 235.714,
    "s": 50,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39328,
    "c": 0.14762,
    "h": 274
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313893

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

Preview Lab → · Contrast checker → · Palette generator →

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