#312682#312682

#312682 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.147 H 280.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#312682
RGBrgb(49, 38, 130)
HSLhsl(247, 55%, 33%)
HSVhsv(247, 71%, 51%)
CMYKcmyk(62.3%, 70.8%, 0%, 49%)
CIE-LABlab(22.48, 33.09, -50.12)
CIE-LCHlch(22.48, 60.06, 303.43°)
OKLaboklab(34.59% 0.0277 -0.1444)
OKLCHoklch(34.59% 0.147 280.8)
XYZxyz(5.9877, 3.6505, 21.5038)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312682 #778226
analogous
#264982 #312682 #5F2682
triadic
#312682 #823126 #268231
tetradic
#312682 #822649 #778226 #26825F
square
#312682 #822649 #778226 #26825F
split-complementary
#312682 #825F26 #498226
monochromatic
#0D0A23 #1F1853 #312682 #4334B1 #6355CD

Accessibility & contrast

On white

12.14
#312682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#312682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312682
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312682#FFFFFF#000000##FFFFFF
##3126821.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312682;
/* rgb */ color: rgb(49, 38, 130);
/* oklch */ color: oklch(34.6% 0.147 280.8);
Tailwind
colors: {
  custom: {
    50: '#7361a7',
    500: '#312682',
    950: '#000000',
  },
}
SCSS
$custom: #312682;
$custom-light: #7361a7;
$custom-dark: #000000;
JSON
{
  "hex": "#312682",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 247.174,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.14705,
    "h": 280.8
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#312682
secondary
#A6B252
accent
#DE4ACC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312682

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

Preview Lab → · Contrast checker → · Palette generator →

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