#313484#313484

#313484 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.132 H 276.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#313484
RGBrgb(49, 52, 132)
HSLhsl(238, 46%, 35%)
HSVhsv(238, 63%, 52%)
CMYKcmyk(62.9%, 60.6%, 0%, 48.2%)
CIE-LABlab(26.08, 24.73, -45.50)
CIE-LCHlch(26.08, 51.79, 298.52°)
OKLaboklab(37.27% 0.0145 -0.1308)
OKLCHoklch(37.27% 0.132 276.3)
XYZxyz(6.6581, 4.7744, 22.3960)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313484 #848131
analogous
#315D84 #313484 #573184
triadic
#313484 #843134 #348431
tetradic
#313484 #84315D #848131 #318457
square
#313484 #84315D #848131 #318457
split-complementary
#313484 #845731 #5D8431
monochromatic
#10112B #202257 #313484 #4246B1 #686CC7

Accessibility & contrast

On white

10.74
#313484 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#313484 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313484
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313484#FFFFFF#000000##FFFFFF
##3134841.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#004756
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313484;
/* rgb */ color: rgb(49, 52, 132);
/* oklch */ color: oklch(37.3% 0.132 276.3);
Tailwind
colors: {
  custom: {
    50: '#726ba8',
    500: '#313484',
    950: '#000000',
  },
}
SCSS
$custom: #313484;
$custom-light: #726ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#313484",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 132
  },
  "hsl": {
    "h": 237.831,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.1316,
    "h": 276.3
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#313484
secondary
#AEAC62
accent
#D152D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313484

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

Preview Lab → · Contrast checker → · Palette generator →

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