#313693#313693

#313693 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.150 H 274.6°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#313693
RGBrgb(49, 54, 147)
HSLhsl(237, 50%, 38%)
HSVhsv(237, 67%, 58%)
CMYKcmyk(66.7%, 63.3%, 0%, 42.4%)
CIE-LABlab(27.84, 28.79, -51.94)
CIE-LCHlch(27.84, 59.39, 299.00°)
OKLaboklab(38.95% 0.0122 -0.1497)
OKLCHoklch(38.95% 0.15 274.6)
XYZxyz(7.8505, 5.3972, 28.2262)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313693 #938E31
analogous
#316793 #313693 #5D3193
triadic
#313693 #933136 #369331
tetradic
#313693 #933167 #938E31 #31935D
square
#313693 #933167 #938E31 #31935D
split-complementary
#313693 #935D31 #679331
monochromatic
#121437 #222565 #313693 #4148C0 #6F74CF

Accessibility & contrast

On white

10.10
#313693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313693
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313693#FFFFFF#000000##FFFFFF
##3136931.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#003D91
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313693;
/* rgb */ color: rgb(49, 54, 147);
/* oklch */ color: oklch(39.0% 0.150 274.6);
Tailwind
colors: {
  custom: {
    50: '#756db3',
    500: '#313693',
    950: '#000000',
  },
}
SCSS
$custom: #313693;
$custom-light: #756db3;
$custom-dark: #000000;
JSON
{
  "hex": "#313693",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 147
  },
  "hsl": {
    "h": 236.939,
    "s": 50,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38953,
    "c": 0.15019,
    "h": 274.6
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313693

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

Preview Lab → · Contrast checker → · Palette generator →

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