#313892#313892

#313892 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.146 H 274.1°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#313892
RGBrgb(49, 56, 146)
HSLhsl(236, 50%, 38%)
HSVhsv(236, 66%, 57%)
CMYKcmyk(66.4%, 61.6%, 0%, 42.7%)
CIE-LABlab(28.26, 27.11, -50.63)
CIE-LCHlch(28.26, 57.44, 298.17°)
OKLaboklab(39.24% 0.0104 -0.1458)
OKLCHoklch(39.24% 0.146 274.1)
XYZxyz(7.8674, 5.5560, 27.8464)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313892 #928B31
analogous
#316892 #313892 #5A3192
triadic
#313892 #923138 #389231
tetradic
#313892 #923168 #928B31 #31925A
square
#313892 #923168 #928B31 #31925A
split-complementary
#313892 #925A31 #689231
monochromatic
#121536 #222664 #313892 #414ABF #6F76CF

Accessibility & contrast

On white

9.95
#313892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313892
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313892#FFFFFF#000000##FFFFFF
##3138921.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004795
Deuteranopia (green-blind)
#003E90
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313892;
/* rgb */ color: rgb(49, 56, 146);
/* oklch */ color: oklch(39.2% 0.146 274.1);
Tailwind
colors: {
  custom: {
    50: '#756eb3',
    500: '#313892',
    950: '#000000',
  },
}
SCSS
$custom: #313892;
$custom-light: #756eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#313892",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 146
  },
  "hsl": {
    "h": 235.67,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.14621,
    "h": 274.1
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#313892
secondary
#B6B169
accent
#CF4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313892

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

Preview Lab → · Contrast checker → · Palette generator →

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