#313676#313676

#313676 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.108 H 276.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#313676
RGBrgb(49, 54, 118)
HSLhsl(236, 41%, 33%)
HSVhsv(236, 58%, 46%)
CMYKcmyk(58.5%, 54.2%, 0%, 53.7%)
CIE-LABlab(25.56, 18.33, -37.53)
CIE-LCHlch(25.56, 41.77, 296.03°)
OKLaboklab(36.54% 0.0118 -0.1073)
OKLCHoklch(36.54% 0.108 276.3)
XYZxyz(5.8548, 4.5989, 17.7152)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313676 #767131
analogous
#315876 #313676 #4E3176
triadic
#313676 #763136 #367631
tetradic
#313676 #763158 #767131 #31764E
square
#313676 #763158 #767131 #31764E
split-complementary
#313676 #764E31 #587631
monochromatic
#0D0E20 #1F224B #313676 #434AA1 #636ABE

Accessibility & contrast

On white

10.94
#313676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#313676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313676
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313676#FFFFFF#000000##FFFFFF
##3136761.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134078
Deuteranopia (green-blind)
#063A75
Tritanopia (blue-blind)
#0B4550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313676;
/* rgb */ color: rgb(49, 54, 118);
/* oklch */ color: oklch(36.5% 0.108 276.3);
Tailwind
colors: {
  custom: {
    50: '#706c9e',
    500: '#313676',
    950: '#000000',
  },
}
SCSS
$custom: #313676;
$custom-light: #706c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#313676",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 118
  },
  "hsl": {
    "h": 235.652,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36542,
    "c": 0.10797,
    "h": 276.3
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#313676
secondary
#A6A05D
accent
#C857D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313676

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

Preview Lab → · Contrast checker → · Palette generator →

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