#312CC5#312CC5

#312CC5 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.4% C 0.224 H 272.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#312CC5
RGBrgb(49, 44, 197)
HSLhsl(242, 63%, 47%)
HSVhsv(242, 78%, 77%)
CMYKcmyk(75.1%, 77.7%, 0%, 22.7%)
CIE-LABlab(30.60, 51.63, -77.39)
CIE-LCHlch(30.60, 93.03, 303.71°)
OKLaboklab(42.41% 0.0107 -0.224)
OKLCHoklch(42.41% 0.224 272.7)
XYZxyz(12.2420, 6.4843, 53.4189)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CC5 #C0C52C
analogous
#2C73C5 #312CC5 #7E2CC5
triadic
#312CC5 #C5312C #2CC531
tetradic
#312CC5 #C52C73 #C0C52C #2CC57E
square
#312CC5 #C52C73 #C0C52C #2CC57E
split-complementary
#312CC5 #C57E2C #73C52C
monochromatic
#181661 #252193 #312CC5 #5955D9 #8A87E4

Accessibility & contrast

On white

9.14
#312CC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#312CC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CC5
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CC5#FFFFFF#000000##FFFFFF
##312CC51.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC9
Deuteranopia (green-blind)
#0040C2
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #312cc5;
/* rgb */ color: rgb(49, 44, 197);
/* oklch */ color: oklch(42.4% 0.224 272.7);
Tailwind
colors: {
  custom: {
    50: '#8268d8',
    500: '#312cc5',
    950: '#000000',
  },
}
SCSS
$custom: #312cc5;
$custom-light: #8268d8;
$custom-dark: #000000;
JSON
{
  "hex": "#312cc5",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 197
  },
  "hsl": {
    "h": 241.961,
    "s": 63.485,
    "l": 47.255
  },
  "oklch": {
    "l": 0.42412,
    "c": 0.22422,
    "h": 272.7
  },
  "luminance": 0.06486
}

Semantic roles & 50–950 ramp

primary
#312CC5
secondary
#CBCE7F
accent
#E741E1
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #312CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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