#313670#313670

#313670 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.099 H 276.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#313670
RGBrgb(49, 54, 112)
HSLhsl(235, 39%, 32%)
HSVhsv(235, 56%, 44%)
CMYKcmyk(56.3%, 51.8%, 0%, 56.1%)
CIE-LABlab(25.14, 16.18, -34.38)
CIE-LCHlch(25.14, 38.00, 295.20°)
OKLaboklab(36.09% 0.0113 -0.0981)
OKLCHoklch(36.09% 0.099 276.6)
XYZxyz(5.5095, 4.4608, 15.8968)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313670 #706B31
analogous
#315670 #313670 #4C3170
triadic
#313670 #703136 #367031
tetradic
#313670 #703156 #706B31 #31704C
square
#313670 #703156 #706B31 #31704C
split-complementary
#313670 #704C31 #567031
monochromatic
#0C0D1B #1E2145 #313670 #444B9B #6168BA

Accessibility & contrast

On white

11.10
#313670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#313670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313670
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313670#FFFFFF#000000##FFFFFF
##3136701.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3E72
Deuteranopia (green-blind)
#12396F
Tritanopia (blue-blind)
#14434D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313670;
/* rgb */ color: rgb(49, 54, 112);
/* oklch */ color: oklch(36.1% 0.099 276.6);
Tailwind
colors: {
  custom: {
    50: '#6f6c99',
    500: '#313670',
    950: '#000000',
  },
}
SCSS
$custom: #313670;
$custom-light: #6f6c99;
$custom-dark: #000000;
JSON
{
  "hex": "#313670",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 112
  },
  "hsl": {
    "h": 235.238,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36091,
    "c": 0.0987,
    "h": 276.6
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#313670
secondary
#A19C5C
accent
#C659CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313670

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

Preview Lab → · Contrast checker → · Palette generator →

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