#313152#313152

#313152 is a dark, muted blue. Relative luminance 0.035; OKLCH L 32.9% C 0.058 H 282.8°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#313152
RGBrgb(49, 49, 82)
HSLhsl(240, 25%, 26%)
HSVhsv(240, 40%, 32%)
CMYKcmyk(40.2%, 40.2%, 0%, 67.8%)
CIE-LABlab(21.79, 9.36, -20.13)
CIE-LCHlch(21.79, 22.20, 294.95°)
OKLaboklab(32.94% 0.0128 -0.0564)
OKLCHoklch(32.94% 0.058 282.8)
XYZxyz(3.8875, 3.4587, 8.4438)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313152 #525231
analogous
#314152 #313152 #413152
triadic
#313152 #523131 #315231
tetradic
#313152 #523141 #525231 #315241
square
#313152 #523141 #525231 #315241
split-complementary
#313152 #524131 #415231
monochromatic
#0B0B13 #1A1A2C #313152 #484878 #5F5F9F

Accessibility & contrast

On white

12.41
#313152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#313152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313152
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313152#FFFFFF#000000##FFFFFF
##3131521.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263553
Deuteranopia (green-blind)
#253351
Tritanopia (blue-blind)
#28373D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313152;
/* rgb */ color: rgb(49, 49, 82);
/* oklch */ color: oklch(32.9% 0.058 282.8);
Tailwind
colors: {
  custom: {
    50: '#6a6983',
    500: '#313152',
    950: '#000000',
  },
}
SCSS
$custom: #313152;
$custom-light: #6a6983;
$custom-dark: #000000;
JSON
{
  "hex": "#313152",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 82
  },
  "hsl": {
    "h": 240,
    "s": 25.191,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32939,
    "c": 0.05782,
    "h": 282.8
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#313152
secondary
#83835C
accent
#C266C2
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #313152

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

Preview Lab → · Contrast checker → · Palette generator →

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