#313145#313145

#313145 is a dark, muted blue. Relative luminance 0.033; OKLCH L 32.2% C 0.035 H 284.2°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#313145
RGBrgb(49, 49, 69)
HSLhsl(240, 17%, 23%)
HSVhsv(240, 29%, 27%)
CMYKcmyk(29%, 29%, 0%, 72.9%)
CIE-LABlab(21.13, 5.33, -12.43)
CIE-LCHlch(21.13, 13.53, 293.21°)
OKLaboklab(32.21% 0.0087 -0.0343)
OKLCHoklch(32.21% 0.035 284.2)
XYZxyz(3.4388, 3.2792, 6.0808)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313145 #454531
analogous
#313B45 #313145 #3B3145
triadic
#313145 #453131 #314531
tetradic
#313145 #45313B #454531 #31453B
square
#313145 #45313B #454531 #31453B
split-complementary
#313145 #453B31 #3B4531
monochromatic
#0D0D12 #181821 #313145 #4A4A69 #64648D

Accessibility & contrast

On white

12.68
#313145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#313145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313145
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313145#FFFFFF#000000##FFFFFF
##3131451.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3346
Deuteranopia (green-blind)
#2B3244
Tritanopia (blue-blind)
#2C3438
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313145;
/* rgb */ color: rgb(49, 49, 69);
/* oklch */ color: oklch(32.2% 0.035 284.2);
Tailwind
colors: {
  custom: {
    50: '#696978',
    500: '#313145',
    950: '#000000',
  },
}
SCSS
$custom: #313145;
$custom-light: #696978;
$custom-dark: #000000;
JSON
{
  "hex": "#313145",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 69
  },
  "hsl": {
    "h": 240,
    "s": 16.949,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32207,
    "c": 0.03537,
    "h": 284.2
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#313145
secondary
#75755C
accent
#BA6EBA
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #313145

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

Preview Lab → · Contrast checker → · Palette generator →

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