#313492#313492

#313492 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.151 H 275.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#313492
RGBrgb(49, 52, 146)
HSLhsl(238, 50%, 38%)
HSVhsv(238, 66%, 57%)
CMYKcmyk(66.4%, 64.4%, 0%, 42.7%)
CIE-LABlab(27.25, 29.74, -52.28)
CIE-LCHlch(27.25, 60.15, 299.63°)
OKLaboklab(38.5% 0.0139 -0.1507)
OKLCHoklch(38.5% 0.151 275.3)
XYZxyz(7.6812, 5.1836, 27.7843)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313492 #928F31
analogous
#316492 #313492 #5E3192
triadic
#313492 #923134 #349231
tetradic
#313492 #923164 #928F31 #31925E
square
#313492 #923164 #928F31 #31925E
split-complementary
#313492 #925E31 #649231
monochromatic
#121336 #222464 #313492 #4145BF #6F72CF

Accessibility & contrast

On white

10.31
#313492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313492
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313492#FFFFFF#000000##FFFFFF
##3134921.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#004C5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313492;
/* rgb */ color: rgb(49, 52, 146);
/* oklch */ color: oklch(38.5% 0.151 275.3);
Tailwind
colors: {
  custom: {
    50: '#756bb3',
    500: '#313492',
    950: '#000000',
  },
}
SCSS
$custom: #313492;
$custom-light: #756bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#313492",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 146
  },
  "hsl": {
    "h": 238.144,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38496,
    "c": 0.15136,
    "h": 275.3
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#313492
secondary
#B6B469
accent
#D54FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313492

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

Preview Lab → · Contrast checker → · Palette generator →

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