#313360#313360

#313360 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.3% C 0.078 H 279.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#313360
RGBrgb(49, 51, 96)
HSLhsl(237, 32%, 28%)
HSVhsv(237, 49%, 38%)
CMYKcmyk(49%, 46.9%, 0%, 62.4%)
CIE-LABlab(23.22, 12.65, -27.11)
CIE-LCHlch(23.22, 29.91, 295.01°)
OKLaboklab(34.3% 0.0129 -0.0767)
OKLCHoklch(34.3% 0.078 279.5)
XYZxyz(4.5611, 3.8649, 11.5697)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313360 #605E31
analogous
#314A60 #313360 #463160
triadic
#313360 #603133 #336031
tetradic
#313360 #60314A #605E31 #316046
square
#313360 #60314A #605E31 #316046
split-complementary
#313360 #604631 #4A6031
monochromatic
#0A0B14 #1C1D37 #313360 #464989 #5E62AD

Accessibility & contrast

On white

11.84
#313360 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#313360 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313360
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313360#FFFFFF#000000##FFFFFF
##3133601.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213962
Deuteranopia (green-blind)
#1E365F
Tritanopia (blue-blind)
#213C44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313360;
/* rgb */ color: rgb(49, 51, 96);
/* oklch */ color: oklch(34.3% 0.078 279.5);
Tailwind
colors: {
  custom: {
    50: '#6c6a8d',
    500: '#313360',
    950: '#000000',
  },
}
SCSS
$custom: #313360;
$custom-light: #6c6a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#313360",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 96
  },
  "hsl": {
    "h": 237.447,
    "s": 32.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34297,
    "c": 0.07782,
    "h": 279.5
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#313360
secondary
#918F5C
accent
#C45FC9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313360

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

Preview Lab → · Contrast checker → · Palette generator →

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