#312090#312090

#312090 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.172 H 279.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#312090
RGBrgb(49, 32, 144)
HSLhsl(249, 64%, 35%)
HSVhsv(249, 78%, 56%)
CMYKcmyk(66%, 77.8%, 0%, 43.5%)
CIE-LABlab(22.65, 41.13, -58.60)
CIE-LCHlch(22.65, 71.59, 305.06°)
OKLaboklab(35.13% 0.0291 -0.1692)
OKLCHoklch(35.13% 0.172 279.8)
XYZxyz(6.8156, 3.6991, 26.7350)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312090 #7F9020
analogous
#204790 #312090 #692090
triadic
#312090 #903120 #209031
tetradic
#312090 #902047 #7F9020 #209069
square
#312090 #902047 #7F9020 #209069
split-complementary
#312090 #906920 #479020
monochromatic
#0F0A2C #20155E #312090 #422BC2 #6652D9

Accessibility & contrast

On white

12.07
#312090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#312090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312090
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312090#FFFFFF#000000##FFFFFF
##3120901.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312090;
/* rgb */ color: rgb(49, 32, 144);
/* oklch */ color: oklch(35.1% 0.172 279.8);
Tailwind
colors: {
  custom: {
    50: '#775eb2',
    500: '#312090',
    950: '#000000',
  },
}
SCSS
$custom: #312090;
$custom-light: #775eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#312090",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 249.107,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35133,
    "c": 0.17164,
    "h": 279.8
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#312090
secondary
#ABBC50
accent
#E741CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #312090

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

Preview Lab → · Contrast checker → · Palette generator →

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