#313192#313192

#313192 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.155 H 276.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#313192
RGBrgb(49, 49, 146)
HSLhsl(240, 50%, 38%)
HSVhsv(240, 66%, 57%)
CMYKcmyk(66.4%, 66.4%, 0%, 42.7%)
CIE-LABlab(26.52, 31.68, -53.48)
CIE-LCHlch(26.52, 62.16, 300.64°)
OKLaboklab(37.96% 0.0164 -0.1542)
OKLCHoklch(37.96% 0.155 276.1)
XYZxyz(7.5515, 4.9243, 27.7411)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313192 #929231
analogous
#316192 #313192 #613192
triadic
#313192 #923131 #319231
tetradic
#313192 #923161 #929231 #319261
square
#313192 #923161 #929231 #319261
split-complementary
#313192 #926131 #619231
monochromatic
#121236 #222264 #313192 #4141BF #6F6FCF

Accessibility & contrast

On white

10.58
#313192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313192
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313192#FFFFFF#000000##FFFFFF
##3131921.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313192;
/* rgb */ color: rgb(49, 49, 146);
/* oklch */ color: oklch(38.0% 0.155 276.1);
Tailwind
colors: {
  custom: {
    50: '#7669b3',
    500: '#313192',
    950: '#000000',
  },
}
SCSS
$custom: #313192;
$custom-light: #7669b3;
$custom-dark: #000000;
JSON
{
  "hex": "#313192",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 146
  },
  "hsl": {
    "h": 240,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3796,
    "c": 0.15512,
    "h": 276.1
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313192

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

Preview Lab → · Contrast checker → · Palette generator →

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