#313346#313346

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

Color values

HEX#313346
RGBrgb(49, 51, 70)
HSLhsl(234, 18%, 23%)
HSVhsv(234, 30%, 27%)
CMYKcmyk(30%, 27.1%, 0%, 72.5%)
CIE-LABlab(21.81, 4.25, -12.06)
CIE-LCHlch(21.81, 12.79, 289.43°)
OKLaboklab(32.75% 0.0057 -0.0332)
OKLCHoklch(32.75% 0.034 279.7)
XYZxyz(3.5557, 3.4627, 6.2742)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313346 #464431
analogous
#313D46 #313346 #393146
triadic
#313346 #463133 #334631
tetradic
#313346 #46313D #464431 #314639
square
#313346 #46313D #464431 #314639
split-complementary
#313346 #463931 #3D4631
monochromatic
#0D0D12 #181922 #313346 #4A4D6A #63678E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313346#FFFFFF#000000##FFFFFF
##3133461.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)
#2E3547
Deuteranopia (green-blind)
#2D3446
Tritanopia (blue-blind)
#2C363A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313346;
/* rgb */ color: rgb(49, 51, 70);
/* oklch */ color: oklch(32.8% 0.034 279.7);
Tailwind
colors: {
  custom: {
    50: '#696a79',
    500: '#313346',
    950: '#000000',
  },
}
SCSS
$custom: #313346;
$custom-light: #696a79;
$custom-dark: #000000;
JSON
{
  "hex": "#313346",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 70
  },
  "hsl": {
    "h": 234.286,
    "s": 17.647,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3275,
    "c": 0.03372,
    "h": 279.7
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#313346
secondary
#76745C
accent
#B36DBA
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #313346

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

Preview Lab → · Contrast checker → · Palette generator →

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