#313981#313981

#313981 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.120 H 274.4°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#313981
RGBrgb(49, 57, 129)
HSLhsl(234, 45%, 35%)
HSVhsv(234, 62%, 51%)
CMYKcmyk(62%, 55.8%, 0%, 49.4%)
CIE-LABlab(27.20, 20.26, -41.82)
CIE-LCHlch(27.20, 46.47, 295.85°)
OKLaboklab(38.03% 0.0092 -0.1199)
OKLCHoklch(38.03% 0.12 274.4)
XYZxyz(6.6909, 5.1637, 21.4087)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313981 #817931
analogous
#316181 #313981 #513181
triadic
#313981 #813139 #398131
tetradic
#313981 #813161 #817931 #318151
square
#313981 #813161 #817931 #318151
split-complementary
#313981 #815131 #618131
monochromatic
#0F1228 #202555 #313981 #424DAD #6771C5

Accessibility & contrast

On white

10.33
#313981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313981
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313981#FFFFFF#000000##FFFFFF
##3139811.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094484
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313981;
/* rgb */ color: rgb(49, 57, 129);
/* oklch */ color: oklch(38.0% 0.120 274.4);
Tailwind
colors: {
  custom: {
    50: '#716fa6',
    500: '#313981',
    950: '#000000',
  },
}
SCSS
$custom: #313981;
$custom-light: #716fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#313981",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 129
  },
  "hsl": {
    "h": 234,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38026,
    "c": 0.12027,
    "h": 274.4
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#313981
secondary
#ADA561
accent
#C853D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313981

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

Preview Lab → · Contrast checker → · Palette generator →

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