#313490#313490

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

Color values

HEX#313490
RGBrgb(49, 52, 144)
HSLhsl(238, 49%, 38%)
HSVhsv(238, 66%, 56%)
CMYKcmyk(66%, 63.9%, 0%, 43.5%)
CIE-LABlab(27.08, 29.03, -51.33)
CIE-LCHlch(27.08, 58.97, 299.49°)
OKLaboklab(38.32% 0.014 -0.1479)
OKLCHoklch(38.32% 0.149 275.4)
XYZxyz(7.5270, 5.1219, 26.9721)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313490 #908D31
analogous
#316490 #313490 #5D3190
triadic
#313490 #903134 #349031
tetradic
#313490 #903164 #908D31 #31905D
square
#313490 #903164 #908D31 #31905D
split-complementary
#313490 #905D31 #649031
monochromatic
#121335 #212462 #313490 #4144BE #6E71CE

Accessibility & contrast

On white

10.37
#313490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313490
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313490#FFFFFF#000000##FFFFFF
##3134901.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313490;
/* rgb */ color: rgb(49, 52, 144);
/* oklch */ color: oklch(38.3% 0.149 275.4);
Tailwind
colors: {
  custom: {
    50: '#756bb1',
    500: '#313490',
    950: '#000000',
  },
}
SCSS
$custom: #313490;
$custom-light: #756bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#313490",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 144
  },
  "hsl": {
    "h": 238.105,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38317,
    "c": 0.14858,
    "h": 275.4
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#313490
secondary
#B5B368
accent
#D44FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313490

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

Preview Lab → · Contrast checker → · Palette generator →

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