#313191#313191

#313191 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.154 H 276.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#313191
RGBrgb(49, 49, 145)
HSLhsl(240, 49%, 38%)
HSVhsv(240, 66%, 57%)
CMYKcmyk(66.2%, 66.2%, 0%, 43.1%)
CIE-LABlab(26.43, 31.33, -53.01)
CIE-LCHlch(26.43, 61.58, 300.58°)
OKLaboklab(37.87% 0.0165 -0.1529)
OKLCHoklch(37.87% 0.154 276.2)
XYZxyz(7.4741, 4.8933, 27.3332)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313191 #919131
analogous
#316191 #313191 #613191
triadic
#313191 #913131 #319131
tetradic
#313191 #913161 #919131 #319161
square
#313191 #913161 #919131 #319161
split-complementary
#313191 #916131 #619131
monochromatic
#121236 #222263 #313191 #4141BF #6E6ECE

Accessibility & contrast

On white

10.61
#313191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313191
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313191#FFFFFF#000000##FFFFFF
##3131911.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313191;
/* rgb */ color: rgb(49, 49, 145);
/* oklch */ color: oklch(37.9% 0.154 276.2);
Tailwind
colors: {
  custom: {
    50: '#7569b2',
    500: '#313191',
    950: '#000000',
  },
}
SCSS
$custom: #313191;
$custom-light: #7569b2;
$custom-dark: #000000;
JSON
{
  "hex": "#313191",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37868,
    "c": 0.15376,
    "h": 276.2
  },
  "luminance": 0.04894
}

Semantic roles & 50–950 ramp

primary
#313191
secondary
#B6B668
accent
#D94FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313191

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

Preview Lab → · Contrast checker → · Palette generator →

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