#313581#313581

#313581 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.126 H 276.1°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#313581
RGBrgb(49, 53, 129)
HSLhsl(237, 45%, 35%)
HSVhsv(237, 62%, 51%)
CMYKcmyk(62%, 58.9%, 0%, 49.4%)
CIE-LABlab(26.11, 22.97, -43.58)
CIE-LCHlch(26.11, 49.27, 297.79°)
OKLaboklab(37.21% 0.0135 -0.1251)
OKLCHoklch(37.21% 0.126 276.1)
XYZxyz(6.5009, 4.7837, 21.3454)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313581 #817D31
analogous
#315D81 #313581 #553181
triadic
#313581 #813135 #358131
tetradic
#313581 #81315D #817D31 #318155
square
#313581 #81315D #817D31 #318155
split-complementary
#313581 #815531 #5D8131
monochromatic
#0F1128 #202355 #313581 #4247AD #676CC5

Accessibility & contrast

On white

10.73
#313581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313581
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313581#FFFFFF#000000##FFFFFF
##3135811.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313581;
/* rgb */ color: rgb(49, 53, 129);
/* oklch */ color: oklch(37.2% 0.126 276.1);
Tailwind
colors: {
  custom: {
    50: '#726ca6',
    500: '#313581',
    950: '#000000',
  },
}
SCSS
$custom: #313581;
$custom-light: #726ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#313581",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 129
  },
  "hsl": {
    "h": 237,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37215,
    "c": 0.12585,
    "h": 276.1
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#313581
secondary
#ADA961
accent
#CE53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313581

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

Preview Lab → · Contrast checker → · Palette generator →

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