#313150#313150

#313150 is a dark, muted blue. Relative luminance 0.034; OKLCH L 32.8% C 0.054 H 283.0°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#313150
RGBrgb(49, 49, 80)
HSLhsl(240, 24%, 25%)
HSVhsv(240, 39%, 31%)
CMYKcmyk(38.8%, 38.8%, 0%, 68.6%)
CIE-LABlab(21.68, 8.72, -18.96)
CIE-LCHlch(21.68, 20.87, 294.70°)
OKLaboklab(32.82% 0.0122 -0.053)
OKLCHoklch(32.82% 0.054 283)
XYZxyz(3.8125, 3.4287, 8.0488)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313150 #505031
analogous
#314050 #313150 #403150
triadic
#313150 #503131 #315031
tetradic
#313150 #503140 #505031 #315040
square
#313150 #503140 #505031 #315040
split-complementary
#313150 #504031 #405031
monochromatic
#0C0C13 #1A1A2A #313150 #484876 #5F5F9C

Accessibility & contrast

On white

12.46
#313150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313150
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313150#FFFFFF#000000##FFFFFF
##3131501.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273551
Deuteranopia (green-blind)
#26334F
Tritanopia (blue-blind)
#29373C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313150;
/* rgb */ color: rgb(49, 49, 80);
/* oklch */ color: oklch(32.8% 0.054 283.0);
Tailwind
colors: {
  custom: {
    50: '#6a6981',
    500: '#313150',
    950: '#000000',
  },
}
SCSS
$custom: #313150;
$custom-light: #6a6981;
$custom-dark: #000000;
JSON
{
  "hex": "#313150",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 80
  },
  "hsl": {
    "h": 240,
    "s": 24.031,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32819,
    "c": 0.05442,
    "h": 283
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#313150
secondary
#81815C
accent
#C067C0
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #313150

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

Preview Lab → · Contrast checker → · Palette generator →

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