#312779#312779

#312779 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.134 H 282.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#312779
RGBrgb(49, 39, 121)
HSLhsl(247, 51%, 31%)
HSVhsv(247, 68%, 47%)
CMYKcmyk(59.5%, 67.8%, 0%, 52.5%)
CIE-LABlab(21.89, 29.41, -45.39)
CIE-LCHlch(21.89, 54.09, 302.94°)
OKLaboklab(33.9% 0.028 -0.1305)
OKLCHoklch(33.9% 0.134 282.1)
XYZxyz(5.4423, 3.4841, 18.4712)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312779 #6F7927
analogous
#274679 #312779 #5A2779
triadic
#312779 #793127 #277931
tetradic
#312779 #792746 #6F7927 #27795A
square
#312779 #792746 #6F7927 #27795A
split-complementary
#312779 #795A27 #467927
monochromatic
#0C091C #1E184B #312779 #4436A7 #6153C8

Accessibility & contrast

On white

12.38
#312779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#312779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312779
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312779#FFFFFF#000000##FFFFFF
##3127791.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#093C4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312779;
/* rgb */ color: rgb(49, 39, 121);
/* oklch */ color: oklch(33.9% 0.134 282.1);
Tailwind
colors: {
  custom: {
    50: '#7162a0',
    500: '#312779',
    950: '#000000',
  },
}
SCSS
$custom: #312779;
$custom-light: #7162a0;
$custom-dark: #000000;
JSON
{
  "hex": "#312779",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 247.317,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33903,
    "c": 0.13353,
    "h": 282.1
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#312779
secondary
#A0AB51
accent
#DB4DC9
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #312779

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

Preview Lab → · Contrast checker → · Palette generator →

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