#313681#313681

#313681 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.124 H 275.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#313681
RGBrgb(49, 54, 129)
HSLhsl(236, 45%, 35%)
HSVhsv(236, 62%, 51%)
CMYKcmyk(62%, 58.1%, 0%, 49.4%)
CIE-LABlab(26.38, 22.30, -43.15)
CIE-LCHlch(26.38, 48.57, 297.33°)
OKLaboklab(37.42% 0.0124 -0.1238)
OKLCHoklch(37.42% 0.124 275.7)
XYZxyz(6.5470, 4.8758, 21.3607)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313681 #817C31
analogous
#315E81 #313681 #543181
triadic
#313681 #813136 #368131
tetradic
#313681 #81315E #817C31 #318154
square
#313681 #81315E #817C31 #318154
split-complementary
#313681 #815431 #5E8131
monochromatic
#0F1128 #202355 #313681 #4249AD #676DC5

Accessibility & contrast

On white

10.63
#313681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313681
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313681#FFFFFF#000000##FFFFFF
##3136811.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#004856
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313681;
/* rgb */ color: rgb(49, 54, 129);
/* oklch */ color: oklch(37.4% 0.124 275.7);
Tailwind
colors: {
  custom: {
    50: '#726da6',
    500: '#313681',
    950: '#000000',
  },
}
SCSS
$custom: #313681;
$custom-light: #726da6;
$custom-dark: #000000;
JSON
{
  "hex": "#313681",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 129
  },
  "hsl": {
    "h": 236.25,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37415,
    "c": 0.12446,
    "h": 275.7
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#313681
secondary
#ADA861
accent
#CD53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313681

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

Preview Lab → · Contrast checker → · Palette generator →

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