#313184#313184

#313184 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.136 H 277.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#313184
RGBrgb(49, 49, 132)
HSLhsl(240, 46%, 35%)
HSVhsv(240, 63%, 52%)
CMYKcmyk(62.9%, 62.9%, 0%, 48.2%)
CIE-LABlab(25.31, 26.73, -46.77)
CIE-LCHlch(25.31, 53.86, 299.75°)
OKLaboklab(36.7% 0.0174 -0.1345)
OKLCHoklch(36.7% 0.136 277.4)
XYZxyz(6.5285, 4.5150, 22.3528)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313184 #848431
analogous
#315A84 #313184 #5A3184
triadic
#313184 #843131 #318431
tetradic
#313184 #84315A #848431 #31845A
square
#313184 #84315A #848431 #31845A
split-complementary
#313184 #845A31 #5A8431
monochromatic
#10102B #202057 #313184 #4242B1 #6868C7

Accessibility & contrast

On white

11.03
#313184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313184
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313184#FFFFFF#000000##FFFFFF
##3131841.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313184;
/* rgb */ color: rgb(49, 49, 132);
/* oklch */ color: oklch(36.7% 0.136 277.4);
Tailwind
colors: {
  custom: {
    50: '#7369a8',
    500: '#313184',
    950: '#000000',
  },
}
SCSS
$custom: #313184;
$custom-light: #7369a8;
$custom-dark: #000000;
JSON
{
  "hex": "#313184",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 132
  },
  "hsl": {
    "h": 240,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36697,
    "c": 0.13565,
    "h": 277.4
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313184

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

Preview Lab → · Contrast checker → · Palette generator →

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