#312964#312964

#312964 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.5% C 0.100 H 285.6°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#312964
RGBrgb(49, 41, 100)
HSLhsl(248, 42%, 28%)
HSVhsv(248, 59%, 39%)
CMYKcmyk(51%, 59%, 0%, 60.8%)
CIE-LABlab(20.67, 20.92, -33.81)
CIE-LCHlch(20.67, 39.76, 301.75°)
OKLaboklab(32.47% 0.0269 -0.0965)
OKLCHoklch(32.47% 0.1 285.6)
XYZxyz(4.3591, 3.1587, 12.4341)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312964 #5C6429
analogous
#293E64 #312964 #4F2964
triadic
#312964 #643129 #296431
tetradic
#312964 #64293E #5C6429 #29644F
square
#312964 #64293E #5C6429 #29644F
split-complementary
#312964 #644F29 #3E6429
monochromatic
#0B0916 #1C1739 #312964 #463B8F #5E50B7

Accessibility & contrast

On white

12.87
#312964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#312964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312964
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312964#FFFFFF#000000##FFFFFF
##3129641.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063366
Deuteranopia (green-blind)
#043063
Tritanopia (blue-blind)
#203642
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312964;
/* rgb */ color: rgb(49, 41, 100);
/* oklch */ color: oklch(32.5% 0.100 285.6);
Tailwind
colors: {
  custom: {
    50: '#6d6391',
    500: '#312964',
    950: '#000000',
  },
}
SCSS
$custom: #312964;
$custom-light: #6d6391;
$custom-dark: #000000;
JSON
{
  "hex": "#312964",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 100
  },
  "hsl": {
    "h": 248.136,
    "s": 41.844,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32468,
    "c": 0.10015,
    "h": 285.6
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#312964
secondary
#8D9652
accent
#D256C1
background
#F6F5F8
surface
#ECEAF0
border
#C7C6CB
text
#07050D
muted
#7A797D

Preview Lab

Preview with #312964

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

Preview Lab → · Contrast checker → · Palette generator →

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