#312683#312683

#312683 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.148 H 280.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#312683
RGBrgb(49, 38, 131)
HSLhsl(247, 55%, 33%)
HSVhsv(247, 71%, 51%)
CMYKcmyk(62.6%, 71%, 0%, 48.6%)
CIE-LABlab(22.58, 33.42, -50.60)
CIE-LCHlch(22.58, 60.64, 303.45°)
OKLaboklab(34.68% 0.0275 -0.1458)
OKLCHoklch(34.68% 0.148 280.7)
XYZxyz(6.0552, 3.6775, 21.8591)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312683 #788326
analogous
#264983 #312683 #5F2683
triadic
#312683 #833126 #268331
tetradic
#312683 #832649 #788326 #26835F
square
#312683 #832649 #788326 #26835F
split-complementary
#312683 #835F26 #498326
monochromatic
#0E0A24 #1F1854 #312683 #4334B2 #6456CE

Accessibility & contrast

On white

12.10
#312683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312683
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312683#FFFFFF#000000##FFFFFF
##3126831.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #312683;
/* rgb */ color: rgb(49, 38, 131);
/* oklch */ color: oklch(34.7% 0.148 280.7);
Tailwind
colors: {
  custom: {
    50: '#7361a8',
    500: '#312683',
    950: '#000000',
  },
}
SCSS
$custom: #312683;
$custom-light: #7361a8;
$custom-dark: #000000;
JSON
{
  "hex": "#312683",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 131
  },
  "hsl": {
    "h": 247.097,
    "s": 55.03,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34683,
    "c": 0.14839,
    "h": 280.7
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#312683
secondary
#A7B252
accent
#DE49CD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312683

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

Preview Lab → · Contrast checker → · Palette generator →

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