#313176#313176

#313176 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.5% C 0.115 H 278.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#313176
RGBrgb(49, 49, 118)
HSLhsl(240, 41%, 33%)
HSVhsv(240, 58%, 46%)
CMYKcmyk(58.5%, 58.5%, 0%, 53.7%)
CIE-LABlab(24.18, 21.74, -39.75)
CIE-LCHlch(24.18, 45.31, 298.68°)
OKLaboklab(35.51% 0.0176 -0.1139)
OKLCHoklch(35.51% 0.115 278.8)
XYZxyz(5.6339, 4.1572, 17.6416)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313176 #767631
analogous
#315376 #313176 #533176
triadic
#313176 #763131 #317631
tetradic
#313176 #763153 #767631 #317653
square
#313176 #763153 #767631 #317653
split-complementary
#313176 #765331 #537631
monochromatic
#0D0D20 #1F1F4B #313176 #4343A1 #6363BE

Accessibility & contrast

On white

11.47
#313176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313176
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313176#FFFFFF#000000##FFFFFF
##3131761.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C78
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#0C414E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313176;
/* rgb */ color: rgb(49, 49, 118);
/* oklch */ color: oklch(35.5% 0.115 278.8);
Tailwind
colors: {
  custom: {
    50: '#70699e',
    500: '#313176',
    950: '#000000',
  },
}
SCSS
$custom: #313176;
$custom-light: #70699e;
$custom-dark: #000000;
JSON
{
  "hex": "#313176",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 118
  },
  "hsl": {
    "h": 240,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35514,
    "c": 0.11525,
    "h": 278.8
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#313176
secondary
#A6A65D
accent
#D157D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313176

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

Preview Lab → · Contrast checker → · Palette generator →

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