#312684#312684

#312684 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.150 H 280.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#312684
RGBrgb(49, 38, 132)
HSLhsl(247, 55%, 33%)
HSVhsv(247, 71%, 52%)
CMYKcmyk(62.9%, 71.2%, 0%, 48.2%)
CIE-LABlab(22.67, 33.76, -51.07)
CIE-LCHlch(22.67, 61.22, 303.46°)
OKLaboklab(34.78% 0.0273 -0.1472)
OKLCHoklch(34.78% 0.15 280.5)
XYZxyz(6.1233, 3.7047, 22.2177)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312684 #798426
analogous
#264A84 #312684 #602684
triadic
#312684 #843126 #268431
tetradic
#312684 #84264A #798426 #268460
square
#312684 #84264A #798426 #268460
split-complementary
#312684 #846026 #4A8426
monochromatic
#0E0B25 #1F1854 #312684 #4334B4 #6456CE

Accessibility & contrast

On white

12.06
#312684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312684
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312684#FFFFFF#000000##FFFFFF
##3126841.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312684;
/* rgb */ color: rgb(49, 38, 132);
/* oklch */ color: oklch(34.8% 0.150 280.5);
Tailwind
colors: {
  custom: {
    50: '#7461a9',
    500: '#312684',
    950: '#000000',
  },
}
SCSS
$custom: #312684;
$custom-light: #7461a9;
$custom-dark: #000000;
JSON
{
  "hex": "#312684",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 132
  },
  "hsl": {
    "h": 247.021,
    "s": 55.294,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34781,
    "c": 0.14972,
    "h": 280.5
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#312684
secondary
#A8B353
accent
#DF49CD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312684

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

Preview Lab → · Contrast checker → · Palette generator →

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