#313168#313168

#313168 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.094 H 280.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#313168
RGBrgb(49, 49, 104)
HSLhsl(240, 36%, 30%)
HSVhsv(240, 53%, 41%)
CMYKcmyk(52.9%, 52.9%, 0%, 59.2%)
CIE-LABlab(23.17, 16.80, -32.40)
CIE-LCHlch(23.17, 36.50, 297.41°)
OKLaboklab(34.42% 0.0167 -0.0923)
OKLCHoklch(34.42% 0.094 280.3)
XYZxyz(4.8629, 3.8488, 13.5807)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313168 #686831
analogous
#314C68 #313168 #4C3168
triadic
#313168 #683131 #316831
tetradic
#313168 #68314D #686831 #31684D
square
#313168 #68314D #686831 #31684D
split-complementary
#313168 #684D31 #4D6831
monochromatic
#0A0A15 #1D1D3E #313168 #454592 #6060B4

Accessibility & contrast

On white

11.87
#313168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#313168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313168
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313168#FFFFFF#000000##FFFFFF
##3131681.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17396A
Deuteranopia (green-blind)
#123567
Tritanopia (blue-blind)
#1C3D47
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313168;
/* rgb */ color: rgb(49, 49, 104);
/* oklch */ color: oklch(34.4% 0.094 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e6993',
    500: '#313168',
    950: '#000000',
  },
}
SCSS
$custom: #313168;
$custom-light: #6e6993;
$custom-dark: #000000;
JSON
{
  "hex": "#313168",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 104
  },
  "hsl": {
    "h": 240,
    "s": 35.948,
    "l": 30
  },
  "oklch": {
    "l": 0.34425,
    "c": 0.0938,
    "h": 280.3
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#313168
secondary
#99995C
accent
#CC5CCC
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #313168

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

Preview Lab → · Contrast checker → · Palette generator →

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