#313186#313186

#313186 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.138 H 277.2°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#313186
RGBrgb(49, 49, 134)
HSLhsl(240, 46%, 36%)
HSVhsv(240, 63%, 53%)
CMYKcmyk(63.4%, 63.4%, 0%, 47.5%)
CIE-LABlab(25.47, 27.44, -47.74)
CIE-LCHlch(25.47, 55.07, 299.88°)
OKLaboklab(36.87% 0.0173 -0.1374)
OKLCHoklch(36.87% 0.138 277.2)
XYZxyz(6.6666, 4.5703, 23.0805)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313186 #868631
analogous
#315B86 #313186 #5B3186
triadic
#313186 #863131 #318631
tetradic
#313186 #86315B #868631 #31865B
square
#313186 #86315B #868631 #31865B
split-complementary
#313186 #865B31 #5B8631
monochromatic
#10102C #212159 #313186 #4141B3 #6969C8

Accessibility & contrast

On white

10.97
#313186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#313186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313186
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313186#FFFFFF#000000##FFFFFF
##3131861.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313186;
/* rgb */ color: rgb(49, 49, 134);
/* oklch */ color: oklch(36.9% 0.138 277.2);
Tailwind
colors: {
  custom: {
    50: '#7369aa',
    500: '#313186',
    950: '#000000',
  },
}
SCSS
$custom: #313186;
$custom-light: #7369aa;
$custom-dark: #000000;
JSON
{
  "hex": "#313186",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 134
  },
  "hsl": {
    "h": 240,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36872,
    "c": 0.13849,
    "h": 277.2
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#313186
secondary
#B0B063
accent
#D652D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313186

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

Preview Lab → · Contrast checker → · Palette generator →

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