#312CC1#312CC1

#312CC1 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.0% C 0.220 H 273.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#312CC1
RGBrgb(49, 44, 193)
HSLhsl(242, 63%, 46%)
HSVhsv(242, 77%, 76%)
CMYKcmyk(74.6%, 77.2%, 0%, 24.3%)
CIE-LABlab(30.17, 50.37, -75.76)
CIE-LCHlch(30.17, 90.98, 303.62°)
OKLaboklab(41.98% 0.0116 -0.2192)
OKLCHoklch(41.98% 0.22 273)
XYZxyz(11.7897, 6.3034, 51.0371)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CC1 #BCC12C
analogous
#2C72C1 #312CC1 #7C2CC1
triadic
#312CC1 #C1312C #2CC131
tetradic
#312CC1 #C12C72 #BCC12C #2CC17C
square
#312CC1 #C12C72 #BCC12C #2CC17C
split-complementary
#312CC1 #C17C2C #72C12C
monochromatic
#18155D #24218F #312CC1 #5753D8 #8884E3

Accessibility & contrast

On white

9.29
#312CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#312CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CC1
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CC1#FFFFFF#000000##FFFFFF
##312CC11.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC5
Deuteranopia (green-blind)
#0040BE
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312cc1;
/* rgb */ color: rgb(49, 44, 193);
/* oklch */ color: oklch(42.0% 0.220 273.0);
Tailwind
colors: {
  custom: {
    50: '#8168d5',
    500: '#312cc1',
    950: '#000000',
  },
}
SCSS
$custom: #312cc1;
$custom-light: #8168d5;
$custom-dark: #000000;
JSON
{
  "hex": "#312cc1",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 242.013,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41977,
    "c": 0.21955,
    "h": 273
  },
  "luminance": 0.06305
}

Semantic roles & 50–950 ramp

primary
#312CC1
secondary
#CACC7D
accent
#E642E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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