#313291#313291

#313291 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.0% C 0.153 H 275.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#313291
RGBrgb(49, 50, 145)
HSLhsl(239, 49%, 38%)
HSVhsv(239, 66%, 57%)
CMYKcmyk(66.2%, 65.5%, 0%, 43.1%)
CIE-LABlab(26.67, 30.69, -52.62)
CIE-LCHlch(26.67, 60.91, 300.25°)
OKLaboklab(38.05% 0.0157 -0.1517)
OKLCHoklch(38.05% 0.153 275.9)
XYZxyz(7.5164, 4.9779, 27.3473)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313291 #919031
analogous
#316291 #313291 #603191
triadic
#313291 #913132 #329131
tetradic
#313291 #913162 #919031 #319160
square
#313291 #913162 #919031 #319160
split-complementary
#313291 #916031 #629131
monochromatic
#121236 #222263 #313291 #4142BF #6E6FCE

Accessibility & contrast

On white

10.52
#313291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313291
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313291#FFFFFF#000000##FFFFFF
##3132911.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313291;
/* rgb */ color: rgb(49, 50, 145);
/* oklch */ color: oklch(38.0% 0.153 275.9);
Tailwind
colors: {
  custom: {
    50: '#756ab2',
    500: '#313291',
    950: '#000000',
  },
}
SCSS
$custom: #313291;
$custom-light: #756ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#313291",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 239.375,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38045,
    "c": 0.15251,
    "h": 275.9
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#313291
secondary
#B6B568
accent
#D84FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313291

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

Preview Lab → · Contrast checker → · Palette generator →

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