#313292#313292

#313292 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.154 H 275.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#313292
RGBrgb(49, 50, 146)
HSLhsl(239, 50%, 38%)
HSVhsv(239, 66%, 57%)
CMYKcmyk(66.4%, 65.8%, 0%, 42.7%)
CIE-LABlab(26.76, 31.04, -53.09)
CIE-LCHlch(26.76, 61.50, 300.31°)
OKLaboklab(38.14% 0.0156 -0.1531)
OKLCHoklch(38.14% 0.154 275.8)
XYZxyz(7.5938, 5.0088, 27.7552)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313292 #929131
analogous
#316292 #313292 #603192
triadic
#313292 #923132 #329231
tetradic
#313292 #923162 #929131 #319260
square
#313292 #923162 #929131 #319260
split-complementary
#313292 #926031 #629231
monochromatic
#121336 #222264 #313292 #4142BF #6F70CF

Accessibility & contrast

On white

10.49
#313292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313292
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313292#FFFFFF#000000##FFFFFF
##3132921.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004495
Deuteranopia (green-blind)
#003B90
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313292;
/* rgb */ color: rgb(49, 50, 146);
/* oklch */ color: oklch(38.1% 0.154 275.8);
Tailwind
colors: {
  custom: {
    50: '#766ab3',
    500: '#313292',
    950: '#000000',
  },
}
SCSS
$custom: #313292;
$custom-light: #766ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#313292",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 146
  },
  "hsl": {
    "h": 239.381,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.15387,
    "h": 275.8
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313292

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

Preview Lab → · Contrast checker → · Palette generator →

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