#313884#313884

#313884 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.126 H 274.7°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#313884
RGBrgb(49, 56, 132)
HSLhsl(235, 46%, 35%)
HSVhsv(235, 63%, 52%)
CMYKcmyk(62.9%, 57.6%, 0%, 48.2%)
CIE-LABlab(27.15, 22.03, -43.77)
CIE-LCHlch(27.15, 49.01, 296.72°)
OKLaboklab(38.06% 0.0104 -0.1257)
OKLCHoklch(38.06% 0.126 274.7)
XYZxyz(6.8443, 5.1467, 22.4581)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313884 #847D31
analogous
#316184 #313884 #533184
triadic
#313884 #843138 #388431
tetradic
#313884 #843161 #847D31 #318453
square
#313884 #843161 #847D31 #318453
split-complementary
#313884 #845331 #618431
monochromatic
#10122B #202557 #313884 #424BB1 #6870C7

Accessibility & contrast

On white

10.35
#313884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313884
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313884#FFFFFF#000000##FFFFFF
##3138841.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004487
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313884;
/* rgb */ color: rgb(49, 56, 132);
/* oklch */ color: oklch(38.1% 0.126 274.7);
Tailwind
colors: {
  custom: {
    50: '#726ea8',
    500: '#313884',
    950: '#000000',
  },
}
SCSS
$custom: #313884;
$custom-light: #726ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#313884",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 132
  },
  "hsl": {
    "h": 234.94,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38062,
    "c": 0.1261,
    "h": 274.7
  },
  "luminance": 0.05147
}

Semantic roles & 50–950 ramp

primary
#313884
secondary
#AEA862
accent
#CA52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313884

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

Preview Lab → · Contrast checker → · Palette generator →

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