#313672#313672

#313672 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.102 H 276.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#313672
RGBrgb(49, 54, 114)
HSLhsl(235, 40%, 32%)
HSVhsv(235, 57%, 45%)
CMYKcmyk(57%, 52.6%, 0%, 55.3%)
CIE-LABlab(25.28, 16.89, -35.44)
CIE-LCHlch(25.28, 39.26, 295.49°)
OKLaboklab(36.24% 0.0115 -0.1012)
OKLCHoklch(36.24% 0.102 276.5)
XYZxyz(5.6221, 4.5058, 16.4898)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313672 #726D31
analogous
#315772 #313672 #4D3172
triadic
#313672 #723136 #367231
tetradic
#313672 #723157 #726D31 #31724D
square
#313672 #723157 #726D31 #31724D
split-complementary
#313672 #724D31 #577231
monochromatic
#0C0D1C #1F2247 #313672 #434A9D #6269BB

Accessibility & contrast

On white

11.05
#313672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313672
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313672#FFFFFF#000000##FFFFFF
##3136721.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183F74
Deuteranopia (green-blind)
#0F3971
Tritanopia (blue-blind)
#11434E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313672;
/* rgb */ color: rgb(49, 54, 114);
/* oklch */ color: oklch(36.2% 0.102 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f6c9b',
    500: '#313672',
    950: '#000000',
  },
}
SCSS
$custom: #313672;
$custom-light: #6f6c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#313672",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 114
  },
  "hsl": {
    "h": 235.385,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36239,
    "c": 0.10182,
    "h": 276.5
  },
  "luminance": 0.04506
}

Semantic roles & 50–950 ramp

primary
#313672
secondary
#A39D5C
accent
#C758D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313672

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

Preview Lab → · Contrast checker → · Palette generator →

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