#313692#313692

#313692 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.149 H 274.7°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#313692
RGBrgb(49, 54, 146)
HSLhsl(237, 50%, 38%)
HSVhsv(237, 66%, 57%)
CMYKcmyk(66.4%, 63%, 0%, 42.7%)
CIE-LABlab(27.75, 28.43, -51.47)
CIE-LCHlch(27.75, 58.80, 298.92°)
OKLaboklab(38.87% 0.0122 -0.1483)
OKLCHoklch(38.87% 0.149 274.7)
XYZxyz(7.7724, 5.3660, 27.8147)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313692 #928D31
analogous
#316692 #313692 #5C3192
triadic
#313692 #923136 #369231
tetradic
#313692 #923166 #928D31 #31925C
square
#313692 #923166 #928D31 #31925C
split-complementary
#313692 #925C31 #669231
monochromatic
#121436 #222564 #313692 #4147BF #6F74CF

Accessibility & contrast

On white

10.13
#313692 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313692
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313692#FFFFFF#000000##FFFFFF
##3136921.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004695
Deuteranopia (green-blind)
#003D90
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313692;
/* rgb */ color: rgb(49, 54, 146);
/* oklch */ color: oklch(38.9% 0.149 274.7);
Tailwind
colors: {
  custom: {
    50: '#756db3',
    500: '#313692',
    950: '#000000',
  },
}
SCSS
$custom: #313692;
$custom-light: #756db3;
$custom-dark: #000000;
JSON
{
  "hex": "#313692",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 146
  },
  "hsl": {
    "h": 236.907,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.1488,
    "h": 274.7
  },
  "luminance": 0.05367
}

Semantic roles & 50–950 ramp

primary
#313692
secondary
#B6B269
accent
#D24FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313692

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

Preview Lab → · Contrast checker → · Palette generator →

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