#313187#313187

#313187 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.140 H 277.1°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#313187
RGBrgb(49, 49, 135)
HSLhsl(240, 47%, 36%)
HSVhsv(240, 64%, 53%)
CMYKcmyk(63.7%, 63.7%, 0%, 47.1%)
CIE-LABlab(25.56, 27.79, -48.23)
CIE-LCHlch(25.56, 55.66, 299.95°)
OKLaboklab(36.96% 0.0173 -0.1388)
OKLCHoklch(36.96% 0.14 277.1)
XYZxyz(6.7367, 4.5983, 23.4495)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313187 #878731
analogous
#315C87 #313187 #5C3187
triadic
#313187 #873131 #318731
tetradic
#313187 #87315C #878731 #31875C
square
#313187 #87315C #878731 #31875C
split-complementary
#313187 #875C31 #5C8731
monochromatic
#10102D #21215A #313187 #4141B4 #6A6AC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313187#FFFFFF#000000##FFFFFF
##3131871.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)
#00408A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313187;
/* rgb */ color: rgb(49, 49, 135);
/* oklch */ color: oklch(37.0% 0.140 277.1);
Tailwind
colors: {
  custom: {
    50: '#7369ab',
    500: '#313187',
    950: '#000000',
  },
}
SCSS
$custom: #313187;
$custom-light: #7369ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313187",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36961,
    "c": 0.1399,
    "h": 277.1
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#313187
secondary
#B0B064
accent
#D651D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313187

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

Preview Lab → · Contrast checker → · Palette generator →

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