#313652#313652

#313652 is a dark, muted blue. Relative luminance 0.039; OKLCH L 34.1% C 0.050 H 275.7°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#313652
RGBrgb(49, 54, 82)
HSLhsl(231, 25%, 26%)
HSVhsv(231, 40%, 32%)
CMYKcmyk(40.2%, 34.1%, 0%, 67.8%)
CIE-LABlab(23.34, 5.91, -17.71)
CIE-LCHlch(23.34, 18.67, 288.45°)
OKLaboklab(34.13% 0.0049 -0.0494)
OKLCHoklch(34.13% 0.05 275.7)
XYZxyz(4.1083, 3.9003, 8.5174)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313652 #524D31
analogous
#314652 #313652 #3C3152
triadic
#313652 #523136 #365231
tetradic
#313652 #523146 #524D31 #31523C
square
#313652 #523146 #524D31 #31523C
split-complementary
#313652 #523C31 #465231
monochromatic
#0B0D13 #1A1D2C #313652 #484F78 #5F689F

Accessibility & contrast

On white

11.80
#313652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#313652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313652
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313652#FFFFFF#000000##FFFFFF
##3136521.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3953
Deuteranopia (green-blind)
#2B3651
Tritanopia (blue-blind)
#273B40
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313652;
/* rgb */ color: rgb(49, 54, 82);
/* oklch */ color: oklch(34.1% 0.050 275.7);
Tailwind
colors: {
  custom: {
    50: '#6a6c82',
    500: '#313652',
    950: '#000000',
  },
}
SCSS
$custom: #313652;
$custom-light: #6a6c82;
$custom-dark: #000000;
JSON
{
  "hex": "#313652",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 82
  },
  "hsl": {
    "h": 230.909,
    "s": 25.191,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34129,
    "c": 0.04965,
    "h": 275.7
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#313652
secondary
#837D5C
accent
#B466C2
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06070A
muted
#7A7A7C

Preview Lab

Preview with #313652

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

Preview Lab → · Contrast checker → · Palette generator →

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