#313487#313487

#313487 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.136 H 276.1°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#313487
RGBrgb(49, 52, 135)
HSLhsl(238, 47%, 36%)
HSVhsv(238, 64%, 53%)
CMYKcmyk(63.7%, 61.5%, 0%, 47.1%)
CIE-LABlab(26.33, 25.80, -46.98)
CIE-LCHlch(26.33, 53.60, 298.78°)
OKLaboklab(37.53% 0.0144 -0.1351)
OKLCHoklch(37.53% 0.136 276.1)
XYZxyz(6.8664, 4.8577, 23.4928)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313487 #878431
analogous
#315F87 #313487 #593187
triadic
#313487 #873134 #348731
tetradic
#313487 #87315F #878431 #318759
square
#313487 #87315F #878431 #318759
split-complementary
#313487 #875931 #5F8731
monochromatic
#10112D #21235A #313487 #4145B4 #6A6DC9

Accessibility & contrast

On white

10.65
#313487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#313487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313487
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313487#FFFFFF#000000##FFFFFF
##3134871.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313487;
/* rgb */ color: rgb(49, 52, 135);
/* oklch */ color: oklch(37.5% 0.136 276.1);
Tailwind
colors: {
  custom: {
    50: '#736bab',
    500: '#313487',
    950: '#000000',
  },
}
SCSS
$custom: #313487;
$custom-light: #736bab;
$custom-dark: #000000;
JSON
{
  "hex": "#313487",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 135
  },
  "hsl": {
    "h": 237.907,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37526,
    "c": 0.13591,
    "h": 276.1
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#313487
secondary
#B0AE64
accent
#D251D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313487

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

Preview Lab → · Contrast checker → · Palette generator →

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