#313170#313170

#313170 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.106 H 279.4°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#313170
RGBrgb(49, 49, 112)
HSLhsl(240, 39%, 32%)
HSVhsv(240, 56%, 44%)
CMYKcmyk(56.3%, 56.3%, 0%, 56.1%)
CIE-LABlab(23.73, 19.62, -36.64)
CIE-LCHlch(23.73, 41.56, 298.16°)
OKLaboklab(35.03% 0.0174 -0.1048)
OKLCHoklch(35.03% 0.106 279.4)
XYZxyz(5.2887, 4.0191, 15.8232)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313170 #707031
analogous
#315170 #313170 #513170
triadic
#313170 #703131 #317031
tetradic
#313170 #703151 #707031 #317051
square
#313170 #703151 #707031 #317051
split-complementary
#313170 #705131 #517031
monochromatic
#0C0C1B #1E1E45 #313170 #44449B #6161BA

Accessibility & contrast

On white

11.64
#313170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#313170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313170
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313170#FFFFFF#000000##FFFFFF
##3131701.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3B72
Deuteranopia (green-blind)
#03366F
Tritanopia (blue-blind)
#143F4B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313170;
/* rgb */ color: rgb(49, 49, 112);
/* oklch */ color: oklch(35.0% 0.106 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f6999',
    500: '#313170',
    950: '#000000',
  },
}
SCSS
$custom: #313170;
$custom-light: #6f6999;
$custom-dark: #000000;
JSON
{
  "hex": "#313170",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35035,
    "c": 0.10619,
    "h": 279.4
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#313170
secondary
#A1A15C
accent
#CF59CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313170

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

Preview Lab → · Contrast checker → · Palette generator →

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