#313772#313772

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

Color values

HEX#313772
RGBrgb(49, 55, 114)
HSLhsl(234, 40%, 32%)
HSVhsv(234, 57%, 45%)
CMYKcmyk(57%, 51.8%, 0%, 55.3%)
CIE-LABlab(25.56, 16.21, -34.98)
CIE-LCHlch(25.56, 38.55, 294.86°)
OKLaboklab(36.46% 0.0103 -0.0998)
OKLCHoklch(36.46% 0.1 275.9)
XYZxyz(5.6691, 4.5999, 16.5055)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313772 #726C31
analogous
#315872 #313772 #4C3172
triadic
#313772 #723137 #377231
tetradic
#313772 #723158 #726C31 #31724C
square
#313772 #723158 #726C31 #31724C
split-complementary
#313772 #724C31 #587231
monochromatic
#0C0E1C #1F2247 #313772 #434C9D #626ABB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313772#FFFFFF#000000##FFFFFF
##3137721.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)
#1A3F74
Deuteranopia (green-blind)
#113A71
Tritanopia (blue-blind)
#11444F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313772;
/* rgb */ color: rgb(49, 55, 114);
/* oklch */ color: oklch(36.5% 0.100 275.9);
Tailwind
colors: {
  custom: {
    50: '#6f6d9b',
    500: '#313772',
    950: '#000000',
  },
}
SCSS
$custom: #313772;
$custom-light: #6f6d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#313772",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 114
  },
  "hsl": {
    "h": 234.462,
    "s": 39.877,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36455,
    "c": 0.10034,
    "h": 275.9
  },
  "luminance": 0.046
}

Semantic roles & 50–950 ramp

primary
#313772
secondary
#A39C5C
accent
#C558D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313772

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

Preview Lab → · Contrast checker → · Palette generator →

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