#313583#313583

#313583 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.129 H 276.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#313583
RGBrgb(49, 53, 131)
HSLhsl(237, 46%, 35%)
HSVhsv(237, 63%, 51%)
CMYKcmyk(62.6%, 59.5%, 0%, 48.6%)
CIE-LABlab(26.27, 23.69, -44.58)
CIE-LCHlch(26.27, 50.48, 297.99°)
OKLaboklab(37.38% 0.0135 -0.1281)
OKLCHoklch(37.38% 0.129 276)
XYZxyz(6.6351, 4.8374, 22.0524)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313583 #837F31
analogous
#315E83 #313583 #563183
triadic
#313583 #833135 #358331
tetradic
#313583 #83315E #837F31 #318356
square
#313583 #83315E #837F31 #318356
split-complementary
#313583 #835631 #5E8331
monochromatic
#10112A #202356 #313583 #4247B0 #686DC6

Accessibility & contrast

On white

10.67
#313583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#313583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313583
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313583#FFFFFF#000000##FFFFFF
##3135831.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313583;
/* rgb */ color: rgb(49, 53, 131);
/* oklch */ color: oklch(37.4% 0.129 276.0);
Tailwind
colors: {
  custom: {
    50: '#726ca8',
    500: '#313583',
    950: '#000000',
  },
}
SCSS
$custom: #313583;
$custom-light: #726ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#313583",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 131
  },
  "hsl": {
    "h": 237.073,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37381,
    "c": 0.12878,
    "h": 276
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#313583
secondary
#AEAA62
accent
#CF53D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313583

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

Preview Lab → · Contrast checker → · Palette generator →

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