#312190#312190

#312190 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.171 H 279.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#312190
RGBrgb(49, 33, 144)
HSLhsl(249, 63%, 35%)
HSVhsv(249, 77%, 56%)
CMYKcmyk(66%, 77.1%, 0%, 43.5%)
CIE-LABlab(22.84, 40.59, -58.29)
CIE-LCHlch(22.84, 71.03, 304.85°)
OKLaboklab(35.27% 0.0284 -0.1683)
OKLCHoklch(35.27% 0.171 279.6)
XYZxyz(6.8429, 3.7538, 26.7441)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312190 #809021
analogous
#214890 #312190 #692190
triadic
#312190 #903121 #219031
tetradic
#312190 #902148 #809021 #219069
square
#312190 #902148 #809021 #219069
split-complementary
#312190 #906921 #489021
monochromatic
#0F0A2C #20165E #312190 #422CC2 #6754D8

Accessibility & contrast

On white

11.99
#312190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#312190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312190
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312190#FFFFFF#000000##FFFFFF
##3121901.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312190;
/* rgb */ color: rgb(49, 33, 144);
/* oklch */ color: oklch(35.3% 0.171 279.6);
Tailwind
colors: {
  custom: {
    50: '#775fb2',
    500: '#312190',
    950: '#000000',
  },
}
SCSS
$custom: #312190;
$custom-light: #775fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#312190",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 248.649,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35266,
    "c": 0.17065,
    "h": 279.6
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#312190
secondary
#ACBB51
accent
#E642CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312190

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

Preview Lab → · Contrast checker → · Palette generator →

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