#313876#313876

#313876 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.0% C 0.105 H 275.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#313876
RGBrgb(49, 56, 118)
HSLhsl(234, 41%, 33%)
HSVhsv(234, 58%, 46%)
CMYKcmyk(58.5%, 52.5%, 0%, 53.7%)
CIE-LABlab(26.12, 16.96, -36.62)
CIE-LCHlch(26.12, 40.36, 294.85°)
OKLaboklab(36.97% 0.0095 -0.1046)
OKLCHoklch(36.97% 0.105 275.2)
XYZxyz(5.9498, 4.7889, 17.7469)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313876 #766F31
analogous
#315A76 #313876 #4C3176
triadic
#313876 #763138 #387631
tetradic
#313876 #76315A #766F31 #31764C
square
#313876 #76315A #766F31 #31764C
split-complementary
#313876 #764C31 #5A7631
monochromatic
#0D0F20 #1F234B #313876 #434DA1 #636CBE

Accessibility & contrast

On white

10.73
#313876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#313876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313876
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313876#FFFFFF#000000##FFFFFF
##3138761.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184178
Deuteranopia (green-blind)
#0D3B75
Tritanopia (blue-blind)
#0A4651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313876;
/* rgb */ color: rgb(49, 56, 118);
/* oklch */ color: oklch(37.0% 0.105 275.2);
Tailwind
colors: {
  custom: {
    50: '#6f6e9e',
    500: '#313876',
    950: '#000000',
  },
}
SCSS
$custom: #313876;
$custom-light: #6f6e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#313876",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 118
  },
  "hsl": {
    "h": 233.913,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36967,
    "c": 0.10505,
    "h": 275.2
  },
  "luminance": 0.04789
}

Semantic roles & 50–950 ramp

primary
#313876
secondary
#A69E5D
accent
#C557D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313876

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

Preview Lab → · Contrast checker → · Palette generator →

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