#313287#313287

#313287 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.139 H 276.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#313287
RGBrgb(49, 50, 135)
HSLhsl(239, 47%, 36%)
HSVhsv(239, 64%, 53%)
CMYKcmyk(63.7%, 63%, 0%, 47.1%)
CIE-LABlab(25.81, 27.13, -47.82)
CIE-LCHlch(25.81, 54.98, 299.57°)
OKLaboklab(37.15% 0.0163 -0.1376)
OKLCHoklch(37.15% 0.139 276.8)
XYZxyz(6.7790, 4.6829, 23.4636)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313287 #878631
analogous
#315D87 #313287 #5B3187
triadic
#313287 #873132 #328731
tetradic
#313287 #87315D #878631 #31875B
square
#313287 #87315D #878631 #31875B
split-complementary
#313287 #875B31 #5D8731
monochromatic
#10112D #21215A #313287 #4143B4 #6A6BC9

Accessibility & contrast

On white

10.84
#313287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#313287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313287
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313287#FFFFFF#000000##FFFFFF
##3132871.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313287;
/* rgb */ color: rgb(49, 50, 135);
/* oklch */ color: oklch(37.1% 0.139 276.8);
Tailwind
colors: {
  custom: {
    50: '#736aab',
    500: '#313287',
    950: '#000000',
  },
}
SCSS
$custom: #313287;
$custom-light: #736aab;
$custom-dark: #000000;
JSON
{
  "hex": "#313287",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 239.302,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37147,
    "c": 0.13857,
    "h": 276.8
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#313287
secondary
#B0AF64
accent
#D551D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313287

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

Preview Lab → · Contrast checker → · Palette generator →

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