#313392#313392

#313392 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.153 H 275.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#313392
RGBrgb(49, 51, 146)
HSLhsl(239, 50%, 38%)
HSVhsv(239, 66%, 57%)
CMYKcmyk(66.4%, 65.1%, 0%, 42.7%)
CIE-LABlab(27.00, 30.39, -52.69)
CIE-LCHlch(27.00, 60.83, 299.98°)
OKLaboklab(38.32% 0.0148 -0.1519)
OKLCHoklch(38.32% 0.153 275.5)
XYZxyz(7.6371, 5.0953, 27.7696)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313392 #929031
analogous
#316392 #313392 #5F3192
triadic
#313392 #923133 #339231
tetradic
#313392 #923163 #929031 #31925F
square
#313392 #923163 #929031 #31925F
split-complementary
#313392 #925F31 #639231
monochromatic
#121336 #222364 #313392 #4144BF #6F71CF

Accessibility & contrast

On white

10.40
#313392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313392
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313392#FFFFFF#000000##FFFFFF
##3133921.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313392;
/* rgb */ color: rgb(49, 51, 146);
/* oklch */ color: oklch(38.3% 0.153 275.5);
Tailwind
colors: {
  custom: {
    50: '#756bb3',
    500: '#313392',
    950: '#000000',
  },
}
SCSS
$custom: #313392;
$custom-light: #756bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#313392",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 146
  },
  "hsl": {
    "h": 238.763,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38316,
    "c": 0.15263,
    "h": 275.5
  },
  "luminance": 0.05096
}

Semantic roles & 50–950 ramp

primary
#313392
secondary
#B6B569
accent
#D64FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313392

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

Preview Lab → · Contrast checker → · Palette generator →

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