#313284#313284

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

Color values

HEX#313284
RGBrgb(49, 50, 132)
HSLhsl(239, 46%, 35%)
HSVhsv(239, 63%, 52%)
CMYKcmyk(62.9%, 62.1%, 0%, 48.2%)
CIE-LABlab(25.56, 26.06, -46.35)
CIE-LCHlch(25.56, 53.17, 299.35°)
OKLaboklab(36.89% 0.0164 -0.1333)
OKLCHoklch(36.89% 0.134 277)
XYZxyz(6.5707, 4.5996, 22.3669)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313284 #848331
analogous
#315B84 #313284 #593184
triadic
#313284 #843132 #328431
tetradic
#313284 #84315B #848331 #318459
square
#313284 #84315B #848331 #318459
split-complementary
#313284 #845931 #5B8431
monochromatic
#10102B #202157 #313284 #4243B1 #6869C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313284#FFFFFF#000000##FFFFFF
##3132841.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)
#004087
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313284;
/* rgb */ color: rgb(49, 50, 132);
/* oklch */ color: oklch(36.9% 0.134 277.0);
Tailwind
colors: {
  custom: {
    50: '#736aa8',
    500: '#313284',
    950: '#000000',
  },
}
SCSS
$custom: #313284;
$custom-light: #736aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#313284",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 132
  },
  "hsl": {
    "h": 239.277,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36885,
    "c": 0.13431,
    "h": 277
  },
  "luminance": 0.046
}

Semantic roles & 50–950 ramp

primary
#313284
secondary
#AEAE62
accent
#D452D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313284

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

Preview Lab → · Contrast checker → · Palette generator →

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