#313390#313390

#313390 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.150 H 275.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#313390
RGBrgb(49, 51, 144)
HSLhsl(239, 49%, 38%)
HSVhsv(239, 66%, 56%)
CMYKcmyk(66%, 64.6%, 0%, 43.5%)
CIE-LABlab(26.83, 29.68, -51.74)
CIE-LCHlch(26.83, 59.65, 299.84°)
OKLaboklab(38.13% 0.0149 -0.1491)
OKLCHoklch(38.13% 0.15 275.7)
XYZxyz(7.4828, 5.0336, 26.9574)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313390 #908E31
analogous
#316290 #313390 #5E3190
triadic
#313390 #903133 #339031
tetradic
#313390 #903162 #908E31 #31905E
square
#313390 #903162 #908E31 #31905E
split-complementary
#313390 #905E31 #629031
monochromatic
#121335 #212362 #313390 #4143BE #6E70CE

Accessibility & contrast

On white

10.46
#313390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313390
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313390#FFFFFF#000000##FFFFFF
##3133901.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#003B8E
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313390;
/* rgb */ color: rgb(49, 51, 144);
/* oklch */ color: oklch(38.1% 0.150 275.7);
Tailwind
colors: {
  custom: {
    50: '#756bb1',
    500: '#313390',
    950: '#000000',
  },
}
SCSS
$custom: #313390;
$custom-light: #756bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#313390",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 144
  },
  "hsl": {
    "h": 238.737,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38134,
    "c": 0.14986,
    "h": 275.7
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313390

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

Preview Lab → · Contrast checker → · Palette generator →

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