#312679#312679

#312679 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.135 H 282.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#312679
RGBrgb(49, 38, 121)
HSLhsl(248, 52%, 31%)
HSVhsv(248, 69%, 47%)
CMYKcmyk(59.5%, 68.6%, 0%, 52.5%)
CIE-LABlab(21.65, 30.05, -45.78)
CIE-LCHlch(21.65, 54.76, 303.28°)
OKLaboklab(33.73% 0.029 -0.1317)
OKLCHoklch(33.73% 0.135 282.4)
XYZxyz(5.4099, 3.4193, 18.4604)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312679 #6E7926
analogous
#264479 #312679 #5A2679
triadic
#312679 #793126 #267931
tetradic
#312679 #792644 #6E7926 #26795A
square
#312679 #792644 #6E7926 #26795A
split-complementary
#312679 #795A26 #447926
monochromatic
#0B091C #1E174A #312679 #4435A8 #6151C8

Accessibility & contrast

On white

12.47
#312679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#312679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312679
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312679#FFFFFF#000000##FFFFFF
##3126791.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#0A3B4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312679;
/* rgb */ color: rgb(49, 38, 121);
/* oklch */ color: oklch(33.7% 0.135 282.4);
Tailwind
colors: {
  custom: {
    50: '#7161a0',
    500: '#312679',
    950: '#000000',
  },
}
SCSS
$custom: #312679;
$custom-light: #7161a0;
$custom-dark: #000000;
JSON
{
  "hex": "#312679",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 247.952,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33732,
    "c": 0.13484,
    "h": 282.4
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#312679
secondary
#9FAB50
accent
#DC4CC9
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #312679

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

Preview Lab → · Contrast checker → · Palette generator →

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