#313162#313162

#313162 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.084 H 280.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#313162
RGBrgb(49, 49, 98)
HSLhsl(240, 33%, 29%)
HSVhsv(240, 50%, 38%)
CMYKcmyk(50%, 50%, 0%, 61.6%)
CIE-LABlab(22.76, 14.72, -29.14)
CIE-LCHlch(22.76, 32.65, 296.80°)
OKLaboklab(33.99% 0.016 -0.0827)
OKLCHoklch(33.99% 0.084 280.9)
XYZxyz(4.5689, 3.7312, 12.0324)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313162 #626231
analogous
#314A62 #313162 #4A3162
triadic
#313162 #623131 #316231
tetradic
#313162 #62314A #626231 #31624A
square
#313162 #62314A #626231 #31624A
split-complementary
#313162 #624A31 #4A6231
monochromatic
#0A0A14 #1D1D39 #313162 #45458B #5F5FAF

Accessibility & contrast

On white

12.03
#313162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#313162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313162
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313162#FFFFFF#000000##FFFFFF
##3131621.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3864
Deuteranopia (green-blind)
#193561
Tritanopia (blue-blind)
#203B44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313162;
/* rgb */ color: rgb(49, 49, 98);
/* oklch */ color: oklch(34.0% 0.084 280.9);
Tailwind
colors: {
  custom: {
    50: '#6d698f',
    500: '#313162',
    950: '#000000',
  },
}
SCSS
$custom: #313162;
$custom-light: #6d698f;
$custom-dark: #000000;
JSON
{
  "hex": "#313162",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 98
  },
  "hsl": {
    "h": 240,
    "s": 33.333,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33991,
    "c": 0.08425,
    "h": 280.9
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#313162
secondary
#93935C
accent
#C95EC9
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #313162

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

Preview Lab → · Contrast checker → · Palette generator →

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