#312688#312688

#312688 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.155 H 279.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#312688
RGBrgb(49, 38, 136)
HSLhsl(247, 56%, 34%)
HSVhsv(247, 72%, 53%)
CMYKcmyk(64%, 72.1%, 0%, 46.7%)
CIE-LABlab(23.05, 35.10, -52.95)
CIE-LCHlch(23.05, 63.53, 303.54°)
OKLaboklab(35.17% 0.0266 -0.1527)
OKLCHoklch(35.17% 0.155 279.9)
XYZxyz(6.4023, 3.8163, 23.6870)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312688 #7D8826
analogous
#264C88 #312688 #622688
triadic
#312688 #883126 #268831
tetradic
#312688 #88264C #7D8826 #268862
square
#312688 #88264C #7D8826 #268862
split-complementary
#312688 #886226 #4C8826
monochromatic
#0F0B28 #201958 #312688 #4233B8 #6658D0

Accessibility & contrast

On white

11.91
#312688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#312688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312688
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312688#FFFFFF#000000##FFFFFF
##3126881.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312688;
/* rgb */ color: rgb(49, 38, 136);
/* oklch */ color: oklch(35.2% 0.155 279.9);
Tailwind
colors: {
  custom: {
    50: '#7562ac',
    500: '#312688',
    950: '#000000',
  },
}
SCSS
$custom: #312688;
$custom-light: #7562ac;
$custom-dark: #000000;
JSON
{
  "hex": "#312688",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 246.735,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35174,
    "c": 0.15501,
    "h": 279.9
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#312688
secondary
#AAB555
accent
#E048CF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312688

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

Preview Lab → · Contrast checker → · Palette generator →

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