#312ED7#312ED7

#312ED7 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.6% C 0.243 H 271.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#312ED7
RGBrgb(49, 46, 215)
HSLhsl(241, 68%, 51%)
HSVhsv(241, 79%, 84%)
CMYKcmyk(77.2%, 78.6%, 0%, 15.7%)
CIE-LABlab(32.94, 56.23, -83.98)
CIE-LCHlch(32.94, 101.07, 303.80°)
OKLaboklab(44.63% 0.0063 -0.2431)
OKLCHoklch(44.63% 0.243 271.5)
XYZxyz(14.5052, 7.5116, 64.9622)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312ED7 #D4D72E
analogous
#2E7FD7 #312ED7 #852ED7
triadic
#312ED7 #D7312E #2ED731
tetradic
#312ED7 #D72E7F #D4D72E #2ED785
square
#312ED7 #D72E7F #D4D72E #2ED785
split-complementary
#312ED7 #D7852E #7FD72E
monochromatic
#181674 #2320A8 #312ED7 #6461E1 #9695EB

Accessibility & contrast

On white

8.39
#312ED7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#312ED7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312ED7
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312ED7#FFFFFF#000000##FFFFFF
##312ED71.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056DC
Deuteranopia (green-blind)
#0045D4
Tritanopia (blue-blind)
#006283
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #312ed7;
/* rgb */ color: rgb(49, 46, 215);
/* oklch */ color: oklch(44.6% 0.243 271.5);
Tailwind
colors: {
  custom: {
    50: '#866ae5',
    500: '#312ed7',
    950: '#000000',
  },
}
SCSS
$custom: #312ed7;
$custom-light: #866ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#312ed7",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 241.065,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.44632,
    "c": 0.24319,
    "h": 271.5
  },
  "luminance": 0.07513
}

Semantic roles & 50–950 ramp

primary
#312ED7
secondary
#D4D68B
accent
#EB3DE8
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #312ED7

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

Preview Lab → · Contrast checker → · Palette generator →

#312ED7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva