#313352#313352

#313352 is a dark, muted blue. Relative luminance 0.036; OKLCH L 33.4% C 0.054 H 280.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#313352
RGBrgb(49, 51, 82)
HSLhsl(236, 25%, 26%)
HSVhsv(236, 40%, 32%)
CMYKcmyk(40.2%, 37.8%, 0%, 67.8%)
CIE-LABlab(22.41, 7.98, -19.16)
CIE-LCHlch(22.41, 20.76, 292.60°)
OKLaboklab(33.41% 0.0096 -0.0536)
OKLCHoklch(33.41% 0.054 280.2)
XYZxyz(3.9730, 3.6297, 8.4723)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313352 #525031
analogous
#314352 #313352 #3F3152
triadic
#313352 #523133 #335231
tetradic
#313352 #523143 #525031 #31523F
square
#313352 #523143 #525031 #31523F
split-complementary
#313352 #523F31 #435231
monochromatic
#0B0C13 #1A1B2C #313352 #484B78 #5F639F

Accessibility & contrast

On white

12.17
#313352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#313352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313352
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313352#FFFFFF#000000##FFFFFF
##3133521.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293753
Deuteranopia (green-blind)
#273451
Tritanopia (blue-blind)
#28393E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313352;
/* rgb */ color: rgb(49, 51, 82);
/* oklch */ color: oklch(33.4% 0.054 280.2);
Tailwind
colors: {
  custom: {
    50: '#6a6a82',
    500: '#313352',
    950: '#000000',
  },
}
SCSS
$custom: #313352;
$custom-light: #6a6a82;
$custom-dark: #000000;
JSON
{
  "hex": "#313352",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 82
  },
  "hsl": {
    "h": 236.364,
    "s": 25.191,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3341,
    "c": 0.05447,
    "h": 280.2
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#313352
secondary
#83815C
accent
#BC66C2
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #313352

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

Preview Lab → · Contrast checker → · Palette generator →

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